Home
last modified time | relevance | path

Searched refs:CheckerContext (Results 1 – 25 of 110) sorted by relevance

12345

/openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/
H A DExprInspectionChecker.cpp38 void analyzerEval(const CallExpr *CE, CheckerContext &C) const;
39 void analyzerCheckInlined(const CallExpr *CE, CheckerContext &C) const;
40 void analyzerWarnIfReached(const CallExpr *CE, CheckerContext &C) const;
41 void analyzerNumTimesReached(const CallExpr *CE, CheckerContext &C) const;
42 void analyzerCrash(const CallExpr *CE, CheckerContext &C) const;
43 void analyzerWarnOnDeadSymbol(const CallExpr *CE, CheckerContext &C) const;
44 void analyzerValue(const CallExpr *CE, CheckerContext &C) const;
45 void analyzerDumpSValType(const CallExpr *CE, CheckerContext &C) const;
46 void analyzerDump(const CallExpr *CE, CheckerContext &C) const;
47 void analyzerExplain(const CallExpr *CE, CheckerContext &C) const;
[all …]
H A DCheckerDocumentation.cpp72 void checkPreStmt(const ReturnStmt *DS, CheckerContext &C) const {} in checkPreStmt()
82 void checkPostStmt(const DeclStmt *DS, CheckerContext &C) const;
91 void checkPreObjCMessage(const ObjCMethodCall &M, CheckerContext &C) const {} in checkPreObjCMessage()
97 void checkPostObjCMessage(const ObjCMethodCall &M, CheckerContext &C) const {} in checkPostObjCMessage()
106 void checkObjCMessageNil(const ObjCMethodCall &M, CheckerContext &C) const {} in checkObjCMessageNil()
118 void checkPreCall(const CallEvent &Call, CheckerContext &C) const {} in checkPreCall()
124 void checkPostCall(const CallEvent &Call, CheckerContext &C) const {} in checkPostCall()
127 void checkBranchCondition(const Stmt *Condition, CheckerContext &Ctx) const {} in checkBranchCondition()
143 CheckerContext &) const {} in checkNewAllocator()
155 CheckerContext &) const {} in checkLocation()
[all …]
H A DUnixAPIChecker.cpp46 void checkPreStmt(const CallExpr *CE, CheckerContext &C) const;
48 void CheckOpen(CheckerContext &C, const CallExpr *CE) const;
49 void CheckOpenAt(CheckerContext &C, const CallExpr *CE) const;
50 void CheckPthreadOnce(CheckerContext &C, const CallExpr *CE) const;
52 void CheckOpenVariant(CheckerContext &C,
55 void ReportOpenBug(CheckerContext &C,
64 void checkPreStmt(const CallExpr *CE, CheckerContext &C) const;
69 void CheckCallocZero(CheckerContext &C, const CallExpr *CE) const;
70 void CheckMallocZero(CheckerContext &C, const CallExpr *CE) const;
71 void CheckReallocZero(CheckerContext &C, const CallExpr *CE) const;
[all …]
H A DAnalysisOrderChecker.cpp49 bool isCallbackEnabled(CheckerContext &C, StringRef CallbackName) const { in isCallbackEnabled()
61 void checkPreStmt(const CastExpr *CE, CheckerContext &C) const { in checkPreStmt()
67 void checkPostStmt(const CastExpr *CE, CheckerContext &C) const { in checkPostStmt()
74 CheckerContext &C) const { in checkPreStmt()
80 CheckerContext &C) const { in checkPostStmt()
85 void checkPreStmt(const CXXNewExpr *NE, CheckerContext &C) const { in checkPreStmt()
90 void checkPostStmt(const CXXNewExpr *NE, CheckerContext &C) const { in checkPostStmt()
95 void checkPreStmt(const CXXDeleteExpr *NE, CheckerContext &C) const { in checkPreStmt()
100 void checkPostStmt(const CXXDeleteExpr *NE, CheckerContext &C) const { in checkPostStmt()
105 void checkPreStmt(const CXXConstructExpr *NE, CheckerContext &C) const { in checkPreStmt()
[all …]
H A DInvalidatedIteratorChecker.cpp36 void verifyAccess(CheckerContext &C, const SVal &Val) const;
38 CheckerContext &C, ExplodedNode *ErrNode) const;
42 void checkPreCall(const CallEvent &Call, CheckerContext &C) const;
43 void checkPreStmt(const UnaryOperator *UO, CheckerContext &C) const;
44 void checkPreStmt(const BinaryOperator *BO, CheckerContext &C) const;
45 void checkPreStmt(const ArraySubscriptExpr *ASE, CheckerContext &C) const;
46 void checkPreStmt(const MemberExpr *ME, CheckerContext &C) const;
58 CheckerContext &C) const { in checkPreCall()
76 CheckerContext &C) const { in checkPreStmt()
90 CheckerContext &C) const { in checkPreStmt()
[all …]
H A DIteratorRangeChecker.cpp37 void verifyDereference(CheckerContext &C, SVal Val) const;
38 void verifyIncrement(CheckerContext &C, SVal Iter) const;
39 void verifyDecrement(CheckerContext &C, SVal Iter) const;
40 void verifyRandomIncrOrDecr(CheckerContext &C, OverloadedOperatorKind Op,
42 void verifyAdvance(CheckerContext &C, SVal LHS, SVal RHS) const;
43 void verifyPrev(CheckerContext &C, SVal LHS, SVal RHS) const;
44 void verifyNext(CheckerContext &C, SVal LHS, SVal RHS) const;
45 void reportBug(const StringRef &Message, SVal Val, CheckerContext &C,
51 void checkPreCall(const CallEvent &Call, CheckerContext &C) const;
52 void checkPreStmt(const UnaryOperator *UO, CheckerContext &C) const;
[all …]
H A DDebugIteratorModeling.cpp34 void analyzerIteratorDataField(const CallExpr *CE, CheckerContext &C,
36 void analyzerIteratorPosition(const CallExpr *CE, CheckerContext &C) const;
37 void analyzerIteratorContainer(const CallExpr *CE, CheckerContext &C) const;
38 void analyzerIteratorValidity(const CallExpr *CE, CheckerContext &C) const;
39 ExplodedNode *reportDebugMsg(llvm::StringRef Msg, CheckerContext &C) const;
42 CheckerContext &) const;
56 bool evalCall(const CallEvent &Call, CheckerContext &C) const;
68 CheckerContext &C) const { in evalCall()
83 CheckerContext &C, in analyzerIteratorDataField()
103 CheckerContext &C) const { in analyzerIteratorPosition()
[all …]
H A DPointerArithChecker.cpp51 AllocKind &AKind, CheckerContext &C) const;
53 CheckerContext &C) const;
54 void reportPointerArithMisuse(const Expr *E, CheckerContext &C,
63 void checkPreStmt(const UnaryOperator *UOp, CheckerContext &C) const;
64 void checkPreStmt(const BinaryOperator *BOp, CheckerContext &C) const;
65 void checkPreStmt(const ArraySubscriptExpr *SubExpr, CheckerContext &C) const;
66 void checkPreStmt(const CastExpr *CE, CheckerContext &C) const;
67 void checkPostStmt(const CastExpr *CE, CheckerContext &C) const;
68 void checkPostStmt(const CXXNewExpr *NE, CheckerContext &C) const;
69 void checkPostStmt(const CallExpr *CE, CheckerContext &C) const;
[all …]
H A DObjCSelfInitChecker.cpp54 static bool isSelfVar(SVal location, CheckerContext &C);
66 void checkForInvalidSelf(const Expr *E, CheckerContext &C,
71 void checkPostObjCMessage(const ObjCMethodCall &Msg, CheckerContext &C) const;
72 void checkPostStmt(const ObjCIvarRefExpr *E, CheckerContext &C) const;
73 void checkPreStmt(const ReturnStmt *S, CheckerContext &C) const;
75 CheckerContext &C) const;
76 void checkBind(SVal loc, SVal val, const Stmt *S, CheckerContext &C) const;
78 void checkPreCall(const CallEvent &CE, CheckerContext &C) const;
79 void checkPostCall(const CallEvent &CE, CheckerContext &C) const;
113 static SelfFlagEnum getSelfFlags(SVal val, CheckerContext &C) { in getSelfFlags()
[all …]
H A DCastValueChecker.cpp39 DefinedOrUnknownSVal, CheckerContext &)>;
54 bool evalCall(const CallEvent &Call, CheckerContext &C) const;
55 void checkDeadSymbols(SymbolReaper &SR, CheckerContext &C) const;
79 CheckerContext &C) const;
81 CheckerContext &C) const;
83 CheckerContext &C) const;
85 CheckerContext &C) const;
87 CheckerContext &C) const;
89 CheckerContext &C) const;
91 CheckerContext &C) const;
[all …]
H A DCheckPlacementNew.cpp25 void checkPreStmt(const CXXNewExpr *NE, CheckerContext &C) const;
29 CheckerContext &C) const;
32 CheckerContext &C) const;
36 SVal getExtentSizeOfNewTarget(const CXXNewExpr *NE, CheckerContext &C,
40 SVal getExtentSizeOfPlace(const CXXNewExpr *NE, CheckerContext &C) const;
42 void emitBadAlignReport(const Expr *P, CheckerContext &C,
45 unsigned getStorageAlign(CheckerContext &C, const ValueDecl *VD) const;
47 void checkElementRegionAlign(const ElementRegion *R, CheckerContext &C,
50 void checkFieldRegionAlign(const FieldRegion *R, CheckerContext &C,
53 bool isVarRegionAlignedProperly(const VarRegion *R, CheckerContext &C,
[all …]
H A DVforkChecker.cpp53 bool isVforkCall(const Decl *D, CheckerContext &C) const;
55 CheckerContext &C) const;
57 void reportBug(const char *What, CheckerContext &C,
63 void checkPreCall(const CallEvent &Call, CheckerContext &C) const;
64 void checkPostCall(const CallEvent &Call, CheckerContext &C) const;
65 void checkBind(SVal L, SVal V, const Stmt *S, CheckerContext &C) const;
66 void checkPreStmt(const ReturnStmt *RS, CheckerContext &C) const;
84 bool VforkChecker::isVforkCall(const Decl *D, CheckerContext &C) const { in isVforkCall()
99 CheckerContext &C) const { in isCallExplicitelyAllowed()
123 void VforkChecker::reportBug(const char *What, CheckerContext &C, in reportBug()
[all …]
H A DTraversalChecker.cpp30 void checkBranchCondition(const Stmt *Condition, CheckerContext &C) const;
31 void checkBeginFunction(CheckerContext &C) const;
32 void checkEndFunction(const ReturnStmt *RS, CheckerContext &C) const;
37 CheckerContext &C) const { in checkBranchCondition()
54 void TraversalDumper::checkBeginFunction(CheckerContext &C) const { in checkBeginFunction()
59 CheckerContext &C) const { in checkEndFunction()
77 void checkPreCall(const CallEvent &Call, CheckerContext &C) const;
78 void checkPostCall(const CallEvent &Call, CheckerContext &C) const;
82 void CallDumper::checkPreCall(const CallEvent &Call, CheckerContext &C) const { in checkPreCall()
95 void CallDumper::checkPostCall(const CallEvent &Call, CheckerContext &C) const { in checkPostCall()
H A DDebugContainerModeling.cpp34 void analyzerContainerDataField(const CallExpr *CE, CheckerContext &C,
36 void analyzerContainerBegin(const CallExpr *CE, CheckerContext &C) const;
37 void analyzerContainerEnd(const CallExpr *CE, CheckerContext &C) const;
38 ExplodedNode *reportDebugMsg(llvm::StringRef Msg, CheckerContext &C) const;
41 CheckerContext &) const;
53 bool evalCall(const CallEvent &Call, CheckerContext &C) const;
65 CheckerContext &C) const { in evalCall()
80 CheckerContext &C, in analyzerContainerDataField()
120 CheckerContext &C) const { in analyzerContainerBegin()
127 CheckerContext &C) const { in analyzerContainerEnd()
[all …]
H A DStreamChecker.cpp166 const CallEvent &, CheckerContext &)>;
186 DefinedSVal makeRetVal(CheckerContext &C, const CallExpr *CE) { in makeRetVal()
195 ProgramStateRef bindAndAssumeTrue(ProgramStateRef State, CheckerContext &C, in bindAndAssumeTrue()
205 CheckerContext &C, const CallExpr *CE) { in bindInt()
225 void checkPreCall(const CallEvent &Call, CheckerContext &C) const;
226 bool evalCall(const CallEvent &Call, CheckerContext &C) const;
227 void checkDeadSymbols(SymbolReaper &SymReaper, CheckerContext &C) const;
290 CheckerContext &C) const;
293 CheckerContext &C) const;
295 CheckerContext &C) const;
[all …]
H A DErrnoTesterChecker.cpp30 bool evalCall(const CallEvent &Call, CheckerContext &C) const;
35 static void evalSetErrno(CheckerContext &C, const CallEvent &Call);
38 static void evalGetErrno(CheckerContext &C, const CallEvent &Call);
44 static void evalSetErrnoIfError(CheckerContext &C, const CallEvent &Call);
48 static void evalSetErrnoIfErrorRange(CheckerContext &C,
69 static void evalSetErrnoCheckState(CheckerContext &C, const CallEvent &Call);
71 using EvalFn = std::function<void(CheckerContext &, const CallEvent &)>;
85 void ErrnoTesterChecker::evalSetErrno(CheckerContext &C, in evalSetErrno()
91 void ErrnoTesterChecker::evalGetErrno(CheckerContext &C, in evalGetErrno()
103 void ErrnoTesterChecker::evalSetErrnoIfError(CheckerContext &C, in evalSetErrnoIfError()
[all …]
H A DPthreadLockChecker.cpp86 CheckerContext &C,
171 void reportBug(CheckerContext &C, std::unique_ptr<BugType> BT[],
176 void InitAnyLock(const CallEvent &Call, CheckerContext &C,
178 void InitLockAux(const CallEvent &Call, CheckerContext &C,
183 void AcquirePthreadLock(const CallEvent &Call, CheckerContext &C,
185 void AcquireXNULock(const CallEvent &Call, CheckerContext &C,
187 void TryPthreadLock(const CallEvent &Call, CheckerContext &C,
189 void TryXNULock(const CallEvent &Call, CheckerContext &C,
191 void TryFuchsiaLock(const CallEvent &Call, CheckerContext &C,
193 void TryC11Lock(const CallEvent &Call, CheckerContext &C,
[all …]
H A DIteratorModeling.cpp92 using AdvanceFn = void (IteratorModeling::*)(CheckerContext &, const Expr *,
95 void handleOverloadedOperator(CheckerContext &C, const CallEvent &Call,
97 void handleAdvanceLikeFunction(CheckerContext &C, const CallEvent &Call,
101 void handleComparison(CheckerContext &C, const Expr *CE, SVal RetVal,
104 void processComparison(CheckerContext &C, ProgramStateRef State,
107 void handleIncrement(CheckerContext &C, const SVal &RetVal, const SVal &Iter,
109 void handleDecrement(CheckerContext &C, const SVal &RetVal, const SVal &Iter,
111 void handleRandomIncrOrDecr(CheckerContext &C, const Expr *CE,
114 void handlePtrIncrOrDecr(CheckerContext &C, const Expr *Iterator,
116 void handleAdvance(CheckerContext &C, const Expr *CE, SVal RetVal, SVal Iter,
[all …]
H A DCStringChecker.cpp121 bool evalCall(const CallEvent &Call, CheckerContext &C) const;
122 void checkPreStmt(const DeclStmt *DS, CheckerContext &C) const;
124 void checkDeadSymbols(SymbolReaper &SR, CheckerContext &C) const;
134 using FnCheck = std::function<void(const CStringChecker *, CheckerContext &,
184 FnCheck identifyCall(const CallEvent &Call, CheckerContext &C) const;
185 void evalMemcpy(CheckerContext &C, const CallExpr *CE, CharKind CK) const;
186 void evalMempcpy(CheckerContext &C, const CallExpr *CE, CharKind CK) const;
187 void evalMemmove(CheckerContext &C, const CallExpr *CE, CharKind CK) const;
188 void evalBcopy(CheckerContext &C, const CallExpr *CE) const;
189 void evalCopyCommon(CheckerContext &C, const CallExpr *CE,
[all …]
H A DErrnoModeling.h65 ProgramStateRef setErrnoValue(ProgramStateRef State, CheckerContext &C,
91 const NoteTag *getErrnoNoteTag(CheckerContext &C, const std::string &Message);
97 ProgramStateRef setErrnoForStdSuccess(ProgramStateRef State, CheckerContext &C);
105 ProgramStateRef setErrnoForStdFailure(ProgramStateRef State, CheckerContext &C,
115 CheckerContext &C, const Expr *InvalE);
120 const NoteTag *getNoteTagForStdSuccess(CheckerContext &C, llvm::StringRef Fn);
125 const NoteTag *getNoteTagForStdMustBeChecked(CheckerContext &C,
H A DChrootChecker.cpp56 bool evalCall(const CallEvent &Call, CheckerContext &C) const;
57 void checkPreCall(const CallEvent &Call, CheckerContext &C) const;
60 void evalChroot(const CallEvent &Call, CheckerContext &C) const;
61 void evalChdir(const CallEvent &Call, CheckerContext &C) const;
66 bool ChrootChecker::evalCall(const CallEvent &Call, CheckerContext &C) const { in evalCall()
79 void ChrootChecker::evalChroot(const CallEvent &Call, CheckerContext &C) const { in evalChroot()
89 void ChrootChecker::evalChdir(const CallEvent &Call, CheckerContext &C) const { in evalChdir()
117 CheckerContext &C) const { in checkPreCall()
H A DObjCSuperDeallocChecker.cpp41 void checkPostObjCMessage(const ObjCMethodCall &M, CheckerContext &C) const;
42 void checkPreObjCMessage(const ObjCMethodCall &M, CheckerContext &C) const;
44 void checkPreCall(const CallEvent &Call, CheckerContext &C) const;
47 CheckerContext &C) const;
51 void diagnoseCallArguments(const CallEvent &CE, CheckerContext &C) const;
54 CheckerContext &C) const;
83 CheckerContext &C) const { in checkPreObjCMessage()
108 CheckerContext &C) const { in checkPreCall()
113 CheckerContext &C) const { in checkPostObjCMessage()
131 CheckerContext &C) const { in checkLocation()
[all …]
H A DBasicObjCFoundationChecks.cpp117 CheckerContext &C) const;
119 void warnIfNilArg(CheckerContext &C,
128 CheckerContext &C) const;
131 void checkPreObjCMessage(const ObjCMethodCall &M, CheckerContext &C) const;
133 CheckerContext &C) const;
135 CheckerContext &C) const;
141 CheckerContext &C) const { in warnIfNilExpr()
151 void NilArgChecker::warnIfNilArg(CheckerContext &C, in warnIfNilArg()
212 CheckerContext &C) const { in generateBugReport()
223 CheckerContext &C) const { in checkPreObjCMessage()
[all …]
/openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/
H A DRetainCountChecker.h287 RetainSummaryManager &getSummaryManager(CheckerContext &C) const { in getSummaryManager()
294 void checkBind(SVal loc, SVal val, const Stmt *S, CheckerContext &C) const;
295 void checkPostStmt(const BlockExpr *BE, CheckerContext &C) const;
296 void checkPostStmt(const CastExpr *CE, CheckerContext &C) const;
298 void checkPostStmt(const ObjCArrayLiteral *AL, CheckerContext &C) const;
299 void checkPostStmt(const ObjCDictionaryLiteral *DL, CheckerContext &C) const;
300 void checkPostStmt(const ObjCBoxedExpr *BE, CheckerContext &C) const;
302 void checkPostStmt(const ObjCIvarRefExpr *IRE, CheckerContext &C) const;
304 void checkPostCall(const CallEvent &Call, CheckerContext &C) const;
307 CheckerContext &C) const;
[all …]
/openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/MPI-Checker/
H A DMPIChecker.h35 void checkPreCall(const CallEvent &CE, CheckerContext &Ctx) const { in checkPreCall()
41 void checkDeadSymbols(SymbolReaper &SymReaper, CheckerContext &Ctx) const { in checkDeadSymbols()
46 void dynamicInit(CheckerContext &Ctx) const { in dynamicInit()
59 clang::ento::CheckerContext &Ctx) const;
67 clang::ento::CheckerContext &Ctx) const;
73 clang::ento::CheckerContext &Ctx) const;
87 clang::ento::CheckerContext &Ctx) const;

12345