| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | ExprInspectionChecker.cpp | 38 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 D | CheckerDocumentation.cpp | 78 void checkPreStmt(const ReturnStmt *DS, CheckerContext &C) const {} in checkPreStmt() 88 void checkPostStmt(const DeclStmt *DS, CheckerContext &C) const; 97 void checkPreObjCMessage(const ObjCMethodCall &M, CheckerContext &C) const {} in checkPreObjCMessage() 103 void checkPostObjCMessage(const ObjCMethodCall &M, CheckerContext &C) const {} in checkPostObjCMessage() 112 void checkObjCMessageNil(const ObjCMethodCall &M, CheckerContext &C) const {} in checkObjCMessageNil() 124 void checkPreCall(const CallEvent &Call, CheckerContext &C) const {} in checkPreCall() 130 void checkPostCall(const CallEvent &Call, CheckerContext &C) const {} in checkPostCall() 146 void checkBranchCondition(const Stmt *Condition, CheckerContext &Ctx) const {} in checkBranchCondition() 159 void checkNewAllocator(const CXXAllocatorCall &, CheckerContext &) const {} in checkNewAllocator() 171 CheckerContext &) const {} in checkLocation() [all …]
|
| H A D | UnixAPIChecker.cpp | 66 EnsurePtrNotNull(SVal PtrVal, const Expr *PtrExpr, CheckerContext &C, 73 const Expr *SizePtrExpr, CheckerContext &C, ProgramStateRef State) const; 82 void checkPreCall(const CallEvent &Call, CheckerContext &C) const; 84 void CheckOpen(CheckerContext &C, const CallEvent &Call) const; 85 void CheckOpenAt(CheckerContext &C, const CallEvent &Call) const; 86 void CheckGetDelimOrGetline(CheckerContext &C, const CallEvent &Call) const; 87 void CheckPthreadOnce(CheckerContext &C, const CallEvent &Call) const; 89 void CheckOpenVariant(CheckerContext &C, const CallEvent &Call, 92 void ReportOpenBug(CheckerContext &C, ProgramStateRef State, const char *Msg, 98 void checkPreStmt(const CallExpr *CE, CheckerContext &C) const; [all …]
|
| H A D | AnalysisOrderChecker.cpp | 48 bool isCallbackEnabled(CheckerContext &C, StringRef CallbackName) const { in isCallbackEnabled() 60 void checkPreStmt(const CastExpr *CE, CheckerContext &C) const { in checkPreStmt() 66 void checkPostStmt(const CastExpr *CE, CheckerContext &C) const { in checkPostStmt() 73 CheckerContext &C) const { in checkPreStmt() 79 CheckerContext &C) const { in checkPostStmt() 84 void checkPreStmt(const CXXNewExpr *NE, CheckerContext &C) const { in checkPreStmt() 89 void checkPostStmt(const CXXNewExpr *NE, CheckerContext &C) const { in checkPostStmt() 94 void checkPreStmt(const CXXDeleteExpr *NE, CheckerContext &C) const { in checkPreStmt() 99 void checkPostStmt(const CXXDeleteExpr *NE, CheckerContext &C) const { in checkPostStmt() 104 void checkPreStmt(const CXXConstructExpr *NE, CheckerContext &C) const { in checkPreStmt() [all …]
|
| H A D | InvalidatedIteratorChecker.cpp | 37 void verifyAccess(CheckerContext &C, SVal Val) const; 38 void reportBug(StringRef Message, SVal Val, CheckerContext &C, 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; 53 CheckerContext &C) const { in checkPreCall() 71 CheckerContext &C) const { in checkPreStmt() 85 CheckerContext &C) const { in checkPreStmt() [all …]
|
| H A D | IteratorRangeChecker.cpp | 38 void verifyDereference(CheckerContext &C, SVal Val) const; 39 void verifyIncrement(CheckerContext &C, SVal Iter) const; 40 void verifyDecrement(CheckerContext &C, SVal Iter) const; 41 void verifyRandomIncrOrDecr(CheckerContext &C, OverloadedOperatorKind Op, 43 void verifyAdvance(CheckerContext &C, SVal LHS, SVal RHS) const; 44 void verifyPrev(CheckerContext &C, SVal LHS, SVal RHS) const; 45 void verifyNext(CheckerContext &C, SVal LHS, SVal RHS) const; 46 void reportBug(StringRef Message, SVal Val, CheckerContext &C, 50 void checkPreCall(const CallEvent &Call, CheckerContext &C) const; 51 void checkPreStmt(const UnaryOperator *UO, CheckerContext &C) const; [all …]
|
| H A D | DebugIteratorModeling.cpp | 35 void analyzerIteratorDataField(const CallExpr *CE, CheckerContext &C, 37 void analyzerIteratorPosition(const CallExpr *CE, CheckerContext &C) const; 38 void analyzerIteratorContainer(const CallExpr *CE, CheckerContext &C) const; 39 void analyzerIteratorValidity(const CallExpr *CE, CheckerContext &C) const; 40 ExplodedNode *reportDebugMsg(llvm::StringRef Msg, CheckerContext &C) const; 43 CheckerContext &) const; 55 bool evalCall(const CallEvent &Call, CheckerContext &C) const; 61 CheckerContext &C) const { in evalCall() 76 CheckerContext &C, in analyzerIteratorDataField() 96 CheckerContext &C) const { in analyzerIteratorPosition() [all …]
|
| H A D | ObjCSelfInitChecker.cpp | 54 static bool isSelfVar(SVal location, CheckerContext &C); 67 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 D | CastValueChecker.cpp | 39 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 D | CheckPlacementNew.cpp | 25 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 D | DebugContainerModeling.cpp | 35 void analyzerContainerDataField(const CallExpr *CE, CheckerContext &C, 37 void analyzerContainerBegin(const CallExpr *CE, CheckerContext &C) const; 38 void analyzerContainerEnd(const CallExpr *CE, CheckerContext &C) const; 39 ExplodedNode *reportDebugMsg(llvm::StringRef Msg, CheckerContext &C) const; 42 CheckerContext &) const; 52 bool evalCall(const CallEvent &Call, CheckerContext &C) const; 58 CheckerContext &C) const { in evalCall() 73 CheckerContext &C, in analyzerContainerDataField() 113 CheckerContext &C) const { in analyzerContainerBegin() 120 CheckerContext &C) const { in analyzerContainerEnd() [all …]
|
| H A D | ErrnoTesterChecker.cpp | 30 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 &)>; 87 void ErrnoTesterChecker::evalSetErrno(CheckerContext &C, in evalSetErrno() 93 void ErrnoTesterChecker::evalGetErrno(CheckerContext &C, in evalGetErrno() 105 void ErrnoTesterChecker::evalSetErrnoIfError(CheckerContext &C, in evalSetErrnoIfError() [all …]
|
| H A D | PthreadLockChecker.cpp | 86 CheckerContext &C, 204 void reportBug(CheckerContext &C, std::unique_ptr<BugType> BT[], 209 void InitAnyLock(const CallEvent &Call, CheckerContext &C, 211 void InitLockAux(const CallEvent &Call, CheckerContext &C, 216 void AcquirePthreadLock(const CallEvent &Call, CheckerContext &C, 218 void AcquireXNULock(const CallEvent &Call, CheckerContext &C, 220 void TryPthreadLock(const CallEvent &Call, CheckerContext &C, 222 void TryXNULock(const CallEvent &Call, CheckerContext &C, 224 void TryFuchsiaLock(const CallEvent &Call, CheckerContext &C, 226 void TryC11Lock(const CallEvent &Call, CheckerContext &C, [all …]
|
| H A D | CStringChecker.cpp | 113 bool evalCall(const CallEvent &Call, CheckerContext &C) const; 114 void checkPreStmt(const DeclStmt *DS, CheckerContext &C) const; 116 void checkDeadSymbols(SymbolReaper &SR, CheckerContext &C) const; 126 using FnCheck = std::function<void(const CStringChecker *, CheckerContext &, 198 FnCheck identifyCall(const CallEvent &Call, CheckerContext &C) const; 199 void evalMemcpy(CheckerContext &C, const CallEvent &Call, CharKind CK) const; 200 void evalMempcpy(CheckerContext &C, const CallEvent &Call, CharKind CK) const; 201 void evalMemmove(CheckerContext &C, const CallEvent &Call, CharKind CK) const; 202 void evalBcopy(CheckerContext &C, const CallEvent &Call) const; 203 void evalCopyCommon(CheckerContext &C, const CallEvent &Call, [all …]
|
| H A D | TraversalChecker.cpp | 32 void checkBeginFunction(CheckerContext &C) const; 33 void checkEndFunction(const ReturnStmt *RS, CheckerContext &C) const; 37 void TraversalDumper::checkBeginFunction(CheckerContext &C) const { in checkBeginFunction() 42 CheckerContext &C) const { in checkEndFunction() 63 void checkPreCall(const CallEvent &Call, CheckerContext &C) const; 64 void checkPostCall(const CallEvent &Call, CheckerContext &C) const; 68 void CallDumper::checkPreCall(const CallEvent &Call, CheckerContext &C) const { in checkPreCall() 81 void CallDumper::checkPostCall(const CallEvent &Call, CheckerContext &C) const { in checkPostCall()
|
| H A D | StreamChecker.cpp | 196 const CallEvent &, CheckerContext &)>; 227 DefinedSVal makeRetVal(CheckerContext &C, ConstCFGElementRef Elem) { in makeRetVal() 234 ProgramStateRef bindAndAssumeTrue(ProgramStateRef State, CheckerContext &C, in bindAndAssumeTrue() 244 CheckerContext &C, const CallExpr *CE) { in bindInt() 270 void checkPreCall(const CallEvent &Call, CheckerContext &C) const; 271 bool evalCall(const CallEvent &Call, CheckerContext &C) const; 272 void checkDeadSymbols(SymbolReaper &SymReaper, CheckerContext &C) const; 291 CheckerContext &C) const; 293 const NoteTag *constructSetEofNoteTag(CheckerContext &C, in constructSetEofNoteTag() 306 const NoteTag *constructSetErrorNoteTag(CheckerContext &C, in constructSetErrorNoteTag() [all …]
|
| H A D | IteratorModeling.cpp | 91 using AdvanceFn = void (IteratorModeling::*)(CheckerContext &, 95 void handleOverloadedOperator(CheckerContext &C, const CallEvent &Call, 97 void handleAdvanceLikeFunction(CheckerContext &C, const CallEvent &Call, 101 void handleComparison(CheckerContext &C, const Expr *CE, 104 void processComparison(CheckerContext &C, ProgramStateRef State, 107 void handleIncrement(CheckerContext &C, SVal RetVal, SVal Iter, 109 void handleDecrement(CheckerContext &C, SVal RetVal, SVal Iter, 111 void handleRandomIncrOrDecr(CheckerContext &C, ConstCFGElementRef Elem, 114 void handlePtrIncrOrDecr(CheckerContext &C, const Expr *Iterator, 117 void handleAdvance(CheckerContext &C, ConstCFGElementRef Elem, SVal RetVal, [all …]
|
| H A D | TestAfterDivZeroChecker.cpp | 79 void reportBug(SVal Val, CheckerContext &C) const; 82 void checkPreStmt(const BinaryOperator *B, CheckerContext &C) const; 83 void checkBranchCondition(const Stmt *Condition, CheckerContext &C) const; 84 void checkEndFunction(const ReturnStmt *RS, CheckerContext &C) const; 85 void setDivZeroMap(SVal Var, CheckerContext &C) const; 86 bool hasDivZeroMap(SVal Var, const CheckerContext &C) const; 87 bool isZero(SVal S, CheckerContext &C) const; 132 bool TestAfterDivZeroChecker::isZero(SVal S, CheckerContext &C) const { in isZero() 142 void TestAfterDivZeroChecker::setDivZeroMap(SVal Var, CheckerContext &C) const { in setDivZeroMap() 154 const CheckerContext &C) const { in hasDivZeroMap() [all …]
|
| H A D | ObjCSuperDeallocChecker.cpp | 42 void checkPostObjCMessage(const ObjCMethodCall &M, CheckerContext &C) const; 43 void checkPreObjCMessage(const ObjCMethodCall &M, CheckerContext &C) const; 45 void checkPreCall(const CallEvent &Call, CheckerContext &C) const; 48 CheckerContext &C) const; 52 void diagnoseCallArguments(const CallEvent &CE, CheckerContext &C) const; 55 CheckerContext &C) const; 84 CheckerContext &C) const { in checkPreObjCMessage() 109 CheckerContext &C) const { in checkPreCall() 114 CheckerContext &C) const { in checkPostObjCMessage() 132 CheckerContext &C) const { in checkLocation() [all …]
|
| H A D | BasicObjCFoundationChecks.cpp | 116 void warnIfNilExpr(const Expr *E, const char *Msg, CheckerContext &C) const; 118 void warnIfNilArg(CheckerContext &C, const ObjCMethodCall &msg, unsigned Arg, 122 const Expr *Expr, CheckerContext &C) const; 125 void checkPreObjCMessage(const ObjCMethodCall &M, CheckerContext &C) const; 126 void checkPostStmt(const ObjCDictionaryLiteral *DL, CheckerContext &C) const; 127 void checkPostStmt(const ObjCArrayLiteral *AL, CheckerContext &C) const; 133 CheckerContext &C) const { in warnIfNilExpr() 159 void NilArgChecker::warnIfNilArg(CheckerContext &C, in warnIfNilArg() 220 CheckerContext &C) const { in generateBugReport() 231 CheckerContext &C) const { in checkPreObjCMessage() [all …]
|
| H A D | CheckObjCDealloc.cpp | 121 void checkBeginFunction(CheckerContext &Ctx) const; 122 void checkPreObjCMessage(const ObjCMethodCall &M, CheckerContext &C) const; 123 void checkPreCall(const CallEvent &Call, CheckerContext &C) const; 124 void checkPostObjCMessage(const ObjCMethodCall &M, CheckerContext &C) const; 133 void checkPreStmt(const ReturnStmt *RS, CheckerContext &C) const; 134 void checkEndFunction(const ReturnStmt *RS, CheckerContext &Ctx) const; 137 void diagnoseMissingReleases(CheckerContext &C) const; 140 CheckerContext &C) const; 144 CheckerContext &C) const; 147 CheckerContext &C) const; [all …]
|
| H A D | MallocChecker.cpp | 153 static bool printMemFnName(raw_ostream &os, CheckerContext &C, const Expr *E); 251 static bool isReleased(SymbolRef Sym, CheckerContext &C); 257 MallocUpdateRefState(CheckerContext &C, const Expr *E, ProgramStateRef State, 421 void checkPreCall(const CallEvent &Call, CheckerContext &C) const; 422 void checkPostCall(const CallEvent &Call, CheckerContext &C) const; 423 bool evalCall(const CallEvent &Call, CheckerContext &C) const; 424 void checkNewAllocator(const CXXAllocatorCall &Call, CheckerContext &C) const; 425 void checkPostObjCMessage(const ObjCMethodCall &Call, CheckerContext &C) const; 426 void checkPostStmt(const BlockExpr *BE, CheckerContext &C) const; 427 void checkDeadSymbols(SymbolReaper &SymReaper, CheckerContext &C) const; [all …]
|
| H A D | SetgidSetuidOrderChecker.cpp | 46 void checkPostCall(const CallEvent &Call, CheckerContext &C) const; 52 CheckerContext &C) const; 54 CheckerContext &C) const; 56 CheckerContext &C) const; 61 void emitReport(ProgramStateRef State, CheckerContext &C) const; 79 CheckerContext &C) const { in REGISTER_TRAIT_WITH_PROGRAMSTATE() 122 CheckerContext &C) const { in processSetuid() 144 CheckerContext &C) const { in processSetgid() 163 CheckerContext &C) const { in processOther() 178 CheckerContext &C) const { in emitReport()
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/ |
| H A D | RetainCountChecker.h | 286 RetainSummaryManager &getSummaryManager(CheckerContext &C) const { in getSummaryManager() 293 void checkBind(SVal loc, SVal val, const Stmt *S, CheckerContext &C) const; 294 void checkPostStmt(const BlockExpr *BE, CheckerContext &C) const; 295 void checkPostStmt(const CastExpr *CE, CheckerContext &C) const; 297 void checkPostStmt(const ObjCArrayLiteral *AL, CheckerContext &C) const; 298 void checkPostStmt(const ObjCDictionaryLiteral *DL, CheckerContext &C) const; 299 void checkPostStmt(const ObjCBoxedExpr *BE, CheckerContext &C) const; 301 void checkPostStmt(const ObjCIvarRefExpr *IRE, CheckerContext &C) const; 303 void checkPostCall(const CallEvent &Call, CheckerContext &C) const; 306 CheckerContext &C) const; [all …]
|
| /freebsd/contrib/llvm-project/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;
|