| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | ExprInspectionChecker.cpp | 37 void analyzerEval(const CallExpr *CE, CheckerContext &C) const; 41 void analyzerCrash(const CallExpr *CE, CheckerContext &C) const; 43 void analyzerValue(const CallExpr *CE, CheckerContext &C) const; 45 void analyzerDump(const CallExpr *CE, CheckerContext &C) const; 46 void analyzerExplain(const CallExpr *CE, CheckerContext &C) const; 52 void analyzerDenote(const CallExpr *CE, CheckerContext &C) const; 60 ExplodedNode *reportBug(llvm::StringRef Msg, CheckerContext &C, 70 bool evalCall(const CallEvent &Call, CheckerContext &C) const; 81 CheckerContext &C) const { in REGISTER_SET_WITH_PROGRAMSTATE() 132 CheckerContext &C) { in getArgumentValueString() [all …]
|
| H A D | CheckerDocumentation.cpp | 72 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() 118 void checkPreCall(const CallEvent &Call, CheckerContext &C) const {} in checkPreCall() 124 void checkPostCall(const CallEvent &Call, CheckerContext &C) const {} in checkPostCall() 143 CheckerContext &) const {} in checkNewAllocator() 155 CheckerContext &) const {} in checkLocation() 180 void checkDeadSymbols(SymbolReaper &SR, CheckerContext &C) const {} in checkDeadSymbols() 187 void checkBeginFunction(CheckerContext &Ctx) const {} in checkBeginFunction() 194 void checkEndFunction(const ReturnStmt *RS, CheckerContext &Ctx) const {} in checkEndFunction() [all …]
|
| H A D | UnixAPIChecker.cpp | 46 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; 52 void CheckOpenVariant(CheckerContext &C, 55 void ReportOpenBug(CheckerContext &C, 77 bool ReportZeroByteAllocation(CheckerContext &C, 81 void BasicAllocationCheck(CheckerContext &C, 127 void UnixAPIMisuseChecker::ReportOpenBug(CheckerContext &C, in ReportOpenBug() 142 void UnixAPIMisuseChecker::CheckOpen(CheckerContext &C, in CheckOpen() 147 void UnixAPIMisuseChecker::CheckOpenAt(CheckerContext &C, in CheckOpenAt() [all …]
|
| H A D | AnalysisOrderChecker.cpp | 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() 125 bool evalCall(const CallEvent &Call, CheckerContext &C) const { in evalCall() 138 void checkPreCall(const CallEvent &Call, CheckerContext &C) const { in checkPreCall() 148 void checkPostCall(const CallEvent &Call, CheckerContext &C) const { in checkPostCall() [all …]
|
| H A D | InvalidatedIteratorChecker.cpp | 36 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; 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() 101 CheckerContext &C) const { in checkPreStmt() [all …]
|
| H A D | IteratorRangeChecker.cpp | 37 void verifyDereference(CheckerContext &C, SVal Val) const; 38 void verifyIncrement(CheckerContext &C, SVal Iter) const; 39 void verifyDecrement(CheckerContext &C, SVal Iter) const; 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; 51 void checkPreCall(const CallEvent &Call, CheckerContext &C) const; 55 void checkPreStmt(const MemberExpr *ME, CheckerContext &C) const; 80 CheckerContext &C) const { in checkPreCall() 196 void IteratorRangeChecker::verifyDereference(CheckerContext &C, in verifyDereference() [all …]
|
| H A D | DebugIteratorModeling.cpp | 34 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 D | ObjCSelfInitChecker.cpp | 54 static bool isSelfVar(SVal location, CheckerContext &C); 66 void checkForInvalidSelf(const Expr *E, CheckerContext &C, 73 void checkPreStmt(const ReturnStmt *S, CheckerContext &C) const; 75 CheckerContext &C) const; 78 void checkPreCall(const CallEvent &CE, CheckerContext &C) const; 113 static SelfFlagEnum getSelfFlags(SVal val, CheckerContext &C) { in getSelfFlags() 118 SelfFlagEnum flag, CheckerContext &C) { in addSelfFlag() 134 static bool isInvalidSelf(const Expr *E, CheckerContext &C) { in isInvalidSelf() 211 CheckerContext &C) const { in checkPreStmt() 319 CheckerContext &C) const { in checkBind() [all …]
|
| H A D | PointerArithChecker.cpp | 53 CheckerContext &C) const; 54 void reportPointerArithMisuse(const Expr *E, CheckerContext &C, 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; 70 void checkDeadSymbols(SymbolReaper &SR, CheckerContext &C) const; 106 CheckerContext &C) const { in getPointedRegion() 276 CheckerContext &C) const { in checkPreStmt() 297 CheckerContext &C) const { in checkPreStmt() [all …]
|
| H A D | CastValueChecker.cpp | 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; 93 CheckerContext &C) const; 105 static const NoteTag *getNoteTag(CheckerContext &C, in getNoteTag() 139 static const NoteTag *getNoteTag(CheckerContext &C, in getNoteTag() [all …]
|
| H A D | CheckPlacementNew.cpp | 25 void checkPreStmt(const CXXNewExpr *NE, CheckerContext &C) const; 29 CheckerContext &C) const; 32 CheckerContext &C) const; 42 void emitBadAlignReport(const Expr *P, CheckerContext &C, 50 void checkFieldRegionAlign(const FieldRegion *R, CheckerContext &C, 103 const CXXNewExpr *NE, CheckerContext &C) const { in checkPlaceCapacityIsSufficient() 167 unsigned PlacementNewChecker::getStorageAlign(CheckerContext &C, in getStorageAlign() 177 const ElementRegion *R, CheckerContext &C, const Expr *P, in checkElementRegionAlign() 236 const FieldRegion *R, CheckerContext &C, const Expr *P, in checkFieldRegionAlign() 261 const VarRegion *R, CheckerContext &C, const Expr *P, in isVarRegionAlignedProperly() [all …]
|
| H A D | VforkChecker.cpp | 52 bool isVforkCall(const Decl *D, CheckerContext &C) const; 54 CheckerContext &C) const; 56 void reportBug(const char *What, CheckerContext &C, 62 void checkPreCall(const CallEvent &Call, CheckerContext &C) const; 63 void checkPostCall(const CallEvent &Call, CheckerContext &C) const; 65 void checkPreStmt(const ReturnStmt *RS, CheckerContext &C) const; 98 CheckerContext &C) const { in isCallExplicitelyAllowed() 122 void VforkChecker::reportBug(const char *What, CheckerContext &C, in reportBug() 145 CheckerContext &C) const { in checkPostCall() 186 CheckerContext &C) const { in checkPreCall() [all …]
|
| H A D | TraversalChecker.cpp | 30 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 D | DebugContainerModeling.cpp | 34 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 D | StreamChecker.cpp | 282 CheckerContext &C) const; 285 CheckerContext &C) const; 287 CheckerContext &C) const; 290 CheckerContext &C) const; 293 CheckerContext &C) const; 296 CheckerContext &C) const; 302 CheckerContext &C) const; 304 CheckerContext &C) const; 307 CheckerContext &C) const; 313 CheckerContext &C, [all …]
|
| H A D | ErrnoTesterChecker.cpp | 29 bool evalCall(const CallEvent &Call, CheckerContext &C) const; 34 static void evalSetErrno(CheckerContext &C, const CallEvent &Call); 37 static void evalGetErrno(CheckerContext &C, const CallEvent &Call); 47 static void evalSetErrnoIfErrorRange(CheckerContext &C, 70 using EvalFn = std::function<void(CheckerContext &, const CallEvent &)>; 84 void ErrnoTesterChecker::evalSetErrno(CheckerContext &C, in evalSetErrno() 90 void ErrnoTesterChecker::evalGetErrno(CheckerContext &C, in evalGetErrno() 102 void ErrnoTesterChecker::evalSetErrnoIfError(CheckerContext &C, in evalSetErrnoIfError() 119 void ErrnoTesterChecker::evalSetErrnoIfErrorRange(CheckerContext &C, in evalSetErrnoIfErrorRange() 141 void ErrnoTesterChecker::evalSetErrnoCheckState(CheckerContext &C, in evalSetErrnoCheckState() [all …]
|
| H A D | PthreadLockChecker.cpp | 86 CheckerContext &C, 176 void InitAnyLock(const CallEvent &Call, CheckerContext &C, 178 void InitLockAux(const CallEvent &Call, CheckerContext &C, 189 void TryXNULock(const CallEvent &Call, CheckerContext &C, 193 void TryC11Lock(const CallEvent &Call, CheckerContext &C, 363 CheckerContext &C, in AcquireXNULock() 370 CheckerContext &C, in TryPthreadLock() 383 CheckerContext &C, in TryFuchsiaLock() 469 CheckerContext &C, in ReleaseAnyLock() 528 CheckerContext &C, in DestroyXNULock() [all …]
|
| H A D | IteratorModeling.cpp | 111 void handleRandomIncrOrDecr(CheckerContext &C, const Expr *CE, 155 CheckerContext &C) const; 172 CheckerContext &C) const { in checkPostCall() 235 CheckerContext &C) const { in checkBind() 251 CheckerContext &C) const { in checkPostStmt() 263 CheckerContext &C) const { in checkPostStmt() 292 CheckerContext &C) const { in checkPostStmt() 351 IteratorModeling::handleOverloadedOperator(CheckerContext &C, in handleOverloadedOperator() 425 IteratorModeling::handleAdvanceLikeFunction(CheckerContext &C, in handleAdvanceLikeFunction() 507 void IteratorModeling::processComparison(CheckerContext &C, in processComparison() [all …]
|
| H A D | CStringChecker.cpp | 176 void evalstrLengthCommon(CheckerContext &C, 196 void evalStrcmpCommon(CheckerContext &C, 211 static assumeZero(CheckerContext &C, 217 static SVal getCStringLengthForRegion(CheckerContext &C, 222 SVal getCStringLength(CheckerContext &C, 259 void emitOverlapBug(CheckerContext &C, 281 static bool IsFirstBufInBound(CheckerContext &C, 1415 void CStringChecker::evalstrLength(CheckerContext &C, in evalstrLength() 1421 void CStringChecker::evalstrnLength(CheckerContext &C, in evalstrnLength() 1997 void CStringChecker::evalStrcasecmp(CheckerContext &C, in evalStrcasecmp() [all …]
|
| H A D | StackAddrEscapeChecker.cpp | 48 void checkPreCall(const CallEvent &Call, CheckerContext &C) const; 49 void checkPreStmt(const ReturnStmt *RS, CheckerContext &C) const; 54 CheckerContext &C) const; 56 CheckerContext &C) const; 57 void EmitStackError(CheckerContext &C, const MemRegion *R, 114 CheckerContext &C) { in isArcManagedBlock() 139 CheckerContext &C) { in getCapturedStackRegions() 152 void StackAddrEscapeChecker::EmitStackError(CheckerContext &C, in EmitStackError() 176 const BlockDataRegion &B, CheckerContext &C) const { in checkAsyncExecutedBlockCaptures() 215 const BlockDataRegion &B, CheckerContext &C) const { in checkReturnedBlockCaptures() [all …]
|
| H A D | ChrootChecker.cpp | 56 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 D | ObjCSuperDeallocChecker.cpp | 41 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 …]
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/ |
| H A D | RetainCountChecker.h | 287 RetainSummaryManager &getSummaryManager(CheckerContext &C) const { in getSummaryManager() 295 void checkPostStmt(const BlockExpr *BE, CheckerContext &C) const; 296 void checkPostStmt(const CastExpr *CE, CheckerContext &C) const; 307 CheckerContext &C) const; 311 CheckerContext &C) const; 313 bool evalCall(const CallEvent &Call, CheckerContext &C) const; 331 void checkBeginFunction(CheckerContext &C) const; 336 CheckerContext &C) const; 343 CheckerContext &C) const; 345 void processObjCLiterals(CheckerContext &C, const Expr *Ex) const; [all …]
|
| /llvm-project-15.0.7/clang/unittests/StaticAnalyzer/ |
| H A D | BugReportInterestingnessTest.cpp | 33 const CallEvent &, CheckerContext &)>; 43 void handleInteresting(const CallEvent &Call, CheckerContext &C) const; 44 void handleNotInteresting(const CallEvent &Call, CheckerContext &C) const; 45 void handleCheck(const CallEvent &Call, CheckerContext &C) const; 46 void handleBug(const CallEvent &Call, CheckerContext &C) const; 52 void checkPreCall(const CallEvent &Call, CheckerContext &C) const { in checkPreCall() 64 CheckerContext &C) const { in handleInteresting() 74 CheckerContext &C) const { in handleNotInteresting() 84 CheckerContext &C) const { in handleCheck() 96 CheckerContext &C) const { in handleBug()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/MPI-Checker/ |
| H A D | MPIChecker.h | 35 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;
|