clang 20.0.0git
Namespaces | Functions
MemoryUnsafeCastChecker.cpp File Reference
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/StaticAnalyzer/Checkers/BuiltinCheckerRegistration.h"
#include "clang/StaticAnalyzer/Core/BugReporter/BugReporter.h"
#include "clang/StaticAnalyzer/Core/BugReporter/BugType.h"
#include "clang/StaticAnalyzer/Core/Checker.h"
#include "clang/StaticAnalyzer/Core/PathSensitive/AnalysisManager.h"

Go to the source code of this file.

Namespaces

namespace  clang
 The JSON file list parser is used to communicate input to InstallAPI.
 
namespace  clang::ast_matchers
 

Functions

static void emitDiagnostics (const BoundNodes &Nodes, BugReporter &BR, AnalysisDeclContext *ADC, const MemoryUnsafeCastChecker *Checker, const BugType &BT)
 
static void emitDiagnosticsUnrelated (const BoundNodes &Nodes, BugReporter &BR, AnalysisDeclContext *ADC, const MemoryUnsafeCastChecker *Checker, const BugType &BT)
 
 clang::ast_matchers::AST_MATCHER_P (StringLiteral, mentionsBoundType, std::string, BindingID)
 
static decltype(auto) hasTypePointingTo (DeclarationMatcher DeclM)
 

Function Documentation

◆ emitDiagnostics()

static void emitDiagnostics ( const BoundNodes Nodes,
BugReporter BR,
AnalysisDeclContext ADC,
const MemoryUnsafeCastChecker *  Checker,
const BugType BT 
)
static

◆ emitDiagnosticsUnrelated()

static void emitDiagnosticsUnrelated ( const BoundNodes Nodes,
BugReporter BR,
AnalysisDeclContext ADC,
const MemoryUnsafeCastChecker *  Checker,
const BugType BT 
)
static

◆ hasTypePointingTo()

static decltype(auto) hasTypePointingTo ( DeclarationMatcher  DeclM)
static