| /llvm-project-15.0.7/clang/include/clang/StaticAnalyzer/Core/BugReporter/ |
| H A D | BugReporterVisitors.h | 40 class PathSensitiveBugReport; variable 73 PathSensitiveBugReport &BR); 89 const PathSensitiveBugReport &BR); 171 PathSensitiveBugReport &Report; 177 Tracker(PathSensitiveBugReport &Report); 182 static TrackerRef create(PathSensitiveBugReport &Report) { in create() 186 PathSensitiveBugReport &getReport() { return Report; } in getReport() 509 PathSensitiveBugReport &R, 538 PathSensitiveBugReport &BR) override; 706 maybeEmitNoteForObjCSelf(PathSensitiveBugReport &R, [all …]
|
| H A D | BugReporter.h | 289 class PathSensitiveBugReport : public BugReport { 369 PathSensitiveBugReport(const BugType &bt, StringRef desc, in PathSensitiveBugReport() function 371 : PathSensitiveBugReport(bt, desc, desc, errorNode) {} in PathSensitiveBugReport() 373 PathSensitiveBugReport(const BugType &bt, StringRef shortDesc, StringRef desc, in PathSensitiveBugReport() function 375 : PathSensitiveBugReport(bt, shortDesc, desc, errorNode, in PathSensitiveBugReport() 386 PathSensitiveBugReport(const BugType &bt, StringRef desc, in PathSensitiveBugReport() function 390 : PathSensitiveBugReport(bt, desc, desc, errorNode, LocationToUnique, in PathSensitiveBugReport() 393 PathSensitiveBugReport(const BugType &bt, StringRef shortDesc, StringRef desc, 695 ArrayRef<PathSensitiveBugReport *> &bugReports); 766 PathSensitiveBugReport &)>; [all …]
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/MPI-Checker/ |
| H A D | MPIBugReporter.cpp | 33 auto Report = std::make_unique<PathSensitiveBugReport>( in reportDoubleNonblocking() 56 auto Report = std::make_unique<PathSensitiveBugReport>(*MissingWaitBugType, in reportMissingWait() 76 auto Report = std::make_unique<PathSensitiveBugReport>(*UnmatchedWaitBugType, in reportUnmatchedWait() 90 PathSensitiveBugReport &BR) { in VisitNode()
|
| /llvm-project-15.0.7/clang/unittests/StaticAnalyzer/ |
| H A D | BugReportInterestingnessTest.cpp | 67 C.addTransition(nullptr, C.getNoteTag([Sym](PathSensitiveBugReport &BR) { in handleInteresting() 77 C.addTransition(nullptr, C.getNoteTag([Sym](PathSensitiveBugReport &BR) { in handleNotInteresting() 87 C.addTransition(nullptr, C.getNoteTag([Sym](PathSensitiveBugReport &BR) { in handleCheck() 99 std::make_unique<PathSensitiveBugReport>(BT_TestBug, "test bug", N)); in handleBug()
|
| H A D | NoStateChangeFuncVisitorTest.cpp | 54 maybeEmitNoteForObjCSelf(PathSensitiveBugReport &R, in maybeEmitNoteForObjCSelf() 61 maybeEmitNoteForCXXThis(PathSensitiveBugReport &R, in maybeEmitNoteForCXXThis() 68 maybeEmitNoteForParameters(PathSensitiveBugReport &R, const CallEvent &Call, in maybeEmitNoteForParameters() 109 std::make_unique<PathSensitiveBugReport>(*BT, "error() called", N); in checkPreCall()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/ |
| H A D | BugReporterVisitors.cpp | 259 const PathSensitiveBugReport *B) { in isInterestingExpr() 566 maybeEmitNote(PathSensitiveBugReport &R, const CallEvent &Call, 1184 PathSensitiveBugReport &BR) override { in finalizeVisitor() 2526 PathSensitiveBugReport &BR) { in VisitNode() 2571 PathSensitiveBugReport &BR) { in VisitNode() 2584 PathSensitiveBugReport &BR) { in VisitNodeImpl() 2622 const CFGBlock *dstBlk, PathSensitiveBugReport &R, in VisitTerminator() 2680 PathSensitiveBugReport &R, in VisitTrueTest() 3107 PathSensitiveBugReport &BR) { in finalizeVisitor() 3194 PathSensitiveBugReport &BR) { in VisitNode() [all …]
|
| H A D | BugReporter.cpp | 213 const PathSensitiveBugReport *R; 1978 const PathSensitiveBugReport *R) in PathDiagnosticConstruct() 2130 PathSensitiveBugReport::PathSensitiveBugReport( in PathSensitiveBugReport() function in PathSensitiveBugReport 2157 void PathSensitiveBugReport::addVisitor( in addVisitor() 2173 void PathSensitiveBugReport::clearVisitors() { in clearVisitors() 2402 PathSensitiveBugReport::getRanges() const { in getRanges() 2412 PathSensitiveBugReport::getLocation() const { in getLocation() 2501 PathSensitiveBugReport *Report; 2774 PathSensitiveBugReport::VisitorList visitors; in generateVisitorsDiagnostics() 2825 ArrayRef<PathSensitiveBugReport *> &bugReports, in findValidReport() [all …]
|
| /llvm-project-15.0.7/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | CheckerContext.h | 272 *getNoteTag(std::function<std::string(PathSensitiveBugReport &)> &&Cb, 276 PathSensitiveBugReport &BR) { return Cb(BR); }, 290 PathSensitiveBugReport &) { return Cb(); }, 303 PathSensitiveBugReport &) { return std::string(Note); }, 315 std::function<void(PathSensitiveBugReport &BR, llvm::raw_ostream &OS)> &&Cb, 318 [Cb](PathSensitiveBugReport &BR) -> std::string {
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | NonNullParamChecker.cpp | 41 std::unique_ptr<PathSensitiveBugReport> 44 std::unique_ptr<PathSensitiveBugReport> 277 std::unique_ptr<PathSensitiveBugReport> 295 std::make_unique<PathSensitiveBugReport>(*BTAttrNonNull, SBuf, ErrorNode); in genReportNullAttrNonNull() 302 std::unique_ptr<PathSensitiveBugReport> 308 auto R = std::make_unique<PathSensitiveBugReport>( in genReportReferenceToNullPointer()
|
| H A D | DeleteWithNonVirtualDtorChecker.cpp | 50 PathSensitiveBugReport &BR) override; 97 auto R = std::make_unique<PathSensitiveBugReport>(*BT, BT->getDescription(), N); in checkPreStmt() 108 PathSensitiveBugReport &BR) { in VisitNode()
|
| H A D | MacOSKeychainAPIChecker.cpp | 116 std::unique_ptr<PathSensitiveBugReport> 122 void markInteresting(PathSensitiveBugReport *R, in markInteresting() 147 PathSensitiveBugReport &BR) override; 241 auto Report = std::make_unique<PathSensitiveBugReport>(*BT, os.str(), N); in generateDeallocatorMismatchReport() 286 std::make_unique<PathSensitiveBugReport>(*BT, os.str(), N); in checkPreStmt() 340 auto Report = std::make_unique<PathSensitiveBugReport>( in checkPreStmt() 471 std::unique_ptr<PathSensitiveBugReport> 493 auto Report = std::make_unique<PathSensitiveBugReport>( in generateAllocatedDataNotReleasedReport() 622 PathSensitiveBugReport &BR) { in VisitNode()
|
| H A D | FuchsiaHandleChecker.cpp | 382 auto *PathBR = static_cast<PathSensitiveBugReport *>(&BR); in checkPostCall() 398 auto *PathBR = static_cast<PathSensitiveBugReport *>(&BR); in checkPostCall() 432 auto *PathBR = static_cast<PathSensitiveBugReport *>(&BR); in checkPostCall() 446 auto *PathBR = static_cast<PathSensitiveBugReport *>(&BR); in checkPostCall() 460 auto *PathBR = static_cast<PathSensitiveBugReport *>(&BR); in checkPostCall() 485 PathSensitiveBugReport &BR) -> std::string { in checkPostCall() 651 std::unique_ptr<PathSensitiveBugReport> R; in reportBug() 660 R = std::make_unique<PathSensitiveBugReport>( in reportBug() 666 R = std::make_unique<PathSensitiveBugReport>(Type, Msg, ErrorNode); in reportBug()
|
| H A D | ObjCAtSyncChecker.cpp | 49 auto report = std::make_unique<PathSensitiveBugReport>( in checkPreStmt() 73 auto report = std::make_unique<PathSensitiveBugReport>( in checkPreStmt()
|
| H A D | CXXSelfAssignmentChecker.cpp | 56 C.getNoteTag([MD](PathSensitiveBugReport &BR) -> std::string { in checkBeginFunction() 66 C.getNoteTag([MD](PathSensitiveBugReport &BR) -> std::string { in checkBeginFunction()
|
| H A D | StringChecker.cpp | 80 const auto Callback = [Param](PathSensitiveBugReport &BR) -> std::string { in checkPreCall() 92 auto R = std::make_unique<PathSensitiveBugReport>( in checkPreCall()
|
| H A D | CallAndMessageChecker.cpp | 142 auto R = std::make_unique<PathSensitiveBugReport>(*BT, BT->getDescription(), N); in emitBadCall() 225 auto R = std::make_unique<PathSensitiveBugReport>(*BT, Os.str(), N); in uninitRefOrPointer() 306 auto R = std::make_unique<PathSensitiveBugReport>(*BT, Os.str(), N); in PreVisitProcessArg() 353 auto R = std::make_unique<PathSensitiveBugReport>(*BT, os.str(), N); in PreVisitProcessArg() 439 std::make_unique<PathSensitiveBugReport>(*BT_call_few_args, os.str(), N)); in checkParameterCount() 504 auto R = std::make_unique<PathSensitiveBugReport>(*BT, Desc, N); in checkCXXDeallocation() 610 auto R = std::make_unique<PathSensitiveBugReport>(*BT, BT->getDescription(), N); in checkPreObjCMessage() 658 std::make_unique<PathSensitiveBugReport>(*BT_msg_ret, os.str(), N); in emitNilReceiverBug()
|
| H A D | DynamicTypeChecker.cpp | 52 PathSensitiveBugReport &BR) override; 83 auto R = std::make_unique<PathSensitiveBugReport>( in reportTypeError() 92 const ExplodedNode *N, BugReporterContext &BRC, PathSensitiveBugReport &) { in VisitNode() argument
|
| H A D | StreamChecker.cpp | 388 std::string operator()(PathSensitiveBugReport &BR) const { in operator ()() 403 return C.getNoteTag([this, StreamSym](PathSensitiveBugReport &BR) { in constructSetEofNoteTag() 873 auto R = std::make_unique<PathSensitiveBugReport>( in ensureStreamNonNull() 901 C.emitReport(std::make_unique<PathSensitiveBugReport>( in ensureStreamOpened() 917 C.emitReport(std::make_unique<PathSensitiveBugReport>( in ensureStreamOpened() 957 C.emitReport(std::make_unique<PathSensitiveBugReport>( in ensureNoFilePositionIndeterminate() 967 C.emitReport(std::make_unique<PathSensitiveBugReport>( in ensureNoFilePositionIndeterminate() 988 C.emitReport(std::make_unique<PathSensitiveBugReport>( in ensureFseekWhenceCorrect() 1002 auto R = std::make_unique<PathSensitiveBugReport>( in reportFEofWarning() 1040 std::unique_ptr<PathSensitiveBugReport> R = in reportLeaks() [all …]
|
| H A D | SmartPtrModeling.cpp | 392 State, C.getNoteTag([ThisRegion](PathSensitiveBugReport &BR, in evalCall() 409 ArgVal](PathSensitiveBugReport &BR, in evalCall() 613 State, C.getNoteTag([ThisRegion, TrackingExpr](PathSensitiveBugReport &BR, in handleReset() 649 C.addTransition(State, C.getNoteTag([ThisRegion](PathSensitiveBugReport &BR, in handleRelease() 691 PathSensitiveBugReport &BR, in handleSwap() 754 C.addTransition(State, C.getNoteTag([ThisRegion](PathSensitiveBugReport &BR, in handleAssignOp() 794 PathSensitiveBugReport &BR, llvm::raw_ostream &OS) { in updateMovedSmartPointers() 818 ThisRegion](PathSensitiveBugReport &BR, in updateMovedSmartPointers() 888 [ThisRegion](PathSensitiveBugReport &BR, in handleBoolConversion() 901 [ThisRegion](PathSensitiveBugReport &BR, llvm::raw_ostream &OS) { in handleBoolConversion()
|
| H A D | ValistChecker.cpp | 83 PathSensitiveBugReport &BR) override { in getEndPath() 94 PathSensitiveBugReport &BR) override; 259 auto R = std::make_unique<PathSensitiveBugReport>(*BT_uninitaccess, Msg, N); in reportUninitializedAccess() 300 auto R = std::make_unique<PathSensitiveBugReport>( in reportLeakedVALists() 380 const ExplodedNode *N, BugReporterContext &BRC, PathSensitiveBugReport &) { in VisitNode() argument
|
| H A D | StackAddrEscapeChecker.cpp | 168 std::make_unique<PathSensitiveBugReport>(*BT_returnstack, os.str(), N); in EmitStackError() 206 auto Report = std::make_unique<PathSensitiveBugReport>( in checkAsyncExecutedBlockCaptures() 230 auto Report = std::make_unique<PathSensitiveBugReport>(*BT_capturedstackret, in checkReturnedBlockCaptures() 393 std::make_unique<PathSensitiveBugReport>(*BT_stackleak, Out.str(), N); in checkEndFunction() 415 std::make_unique<PathSensitiveBugReport>(*BT_stackleak, Out.str(), N); in checkEndFunction()
|
| H A D | ObjCSuperDeallocChecker.cpp | 74 PathSensitiveBugReport &BR) override; 191 auto BR = std::make_unique<PathSensitiveBugReport>(*DoubleSuperDeallocBugType, in reportUseAfterDealloc() 249 PathSensitiveBugReport &) { in VisitNode() argument
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/ |
| H A D | RetainCountDiagnostics.h | 49 class RefCountReport : public PathSensitiveBugReport { 65 return PathSensitiveBugReport::getRanges(); in getRanges() 95 return PathSensitiveBugReport::getLocation(); in getEndOfPath()
|
| H A D | RetainCountDiagnostics.cpp | 327 PathSensitiveBugReport &BR) override; 331 PathSensitiveBugReport &BR) override; 341 PathSensitiveBugReport &BR) override; 454 PathSensitiveBugReport &BR) { in VisitNode() 753 PathSensitiveBugReport &BR) { in getEndPath() 761 PathSensitiveBugReport &BR) { in getEndPath() 840 : PathSensitiveBugReport(D, D.getDescription(), n), Sym(sym), in RefCountReport() 849 : PathSensitiveBugReport(D, D.getDescription(), endText, n) { in RefCountReport()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/cert/ |
| H A D | InvalidPtrChecker.cpp | 104 PathSensitiveBugReport &BR, llvm::raw_ostream &Out) { in REGISTER_SET_WITH_PROGRAMSTATE() 125 Note = C.getNoteTag([PrevReg, FD](PathSensitiveBugReport &BR, in postPreviousReturnInvalidatingCall() 153 C.getNoteTag([MR](PathSensitiveBugReport &BR, llvm::raw_ostream &Out) { in postPreviousReturnInvalidatingCall() 220 std::make_unique<PathSensitiveBugReport>(BT, Out.str(), ErrorNode); in checkPostCall() 262 auto Report = std::make_unique<PathSensitiveBugReport>( in checkLocation()
|