/external/clang/include/clang/StaticAnalyzer/Core/BugReporter/ |
D | PathDiagnostic.h | 134 class PathDiagnosticLocation { 143 PathDiagnosticLocation(SourceLocation L, const SourceManager &sm, in PathDiagnosticLocation() function 158 PathDiagnosticLocation() in PathDiagnosticLocation() function 162 PathDiagnosticLocation(const Stmt *s, in PathDiagnosticLocation() function 176 PathDiagnosticLocation(const Decl *d, const SourceManager &sm) in PathDiagnosticLocation() function 187 PathDiagnosticLocation(SourceLocation loc, const SourceManager &sm) in PathDiagnosticLocation() function 195 static PathDiagnosticLocation create(const Decl *D, in create() 197 return PathDiagnosticLocation(D, SM); in create() 201 static PathDiagnosticLocation createBegin(const Decl *D, 205 static PathDiagnosticLocation createBegin(const Stmt *S, [all …]
|
D | BugReporter.h | 78 PathDiagnosticLocation Location; 79 PathDiagnosticLocation UniqueingLocation; 156 BugReport(BugType &bt, StringRef desc, PathDiagnosticLocation l) in BugReport() 168 PathDiagnosticLocation LocationToUnique, const Decl *DeclToUnique) in BugReport() 265 virtual PathDiagnosticLocation getLocation(const SourceManager &SM) const; 268 PathDiagnosticLocation getUniqueingLocation() const { in getUniqueingLocation() 471 StringRef BugStr, PathDiagnosticLocation Loc, 476 StringRef BugStr, PathDiagnosticLocation Loc,
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | PathDiagnostic.cpp | 113 PathDiagnosticLocation LocationToUnique, in PathDiagnostic() 543 static PathDiagnosticLocation 552 return PathDiagnosticLocation(Source.castAs<CFGStmt>().getStmt(), in getLocationForCaller() 556 return PathDiagnosticLocation(Init.getInitializer()->getInit(), in getLocationForCaller() 561 return PathDiagnosticLocation::createEnd(Dtor.getTriggerStmt(), in getLocationForCaller() 566 return PathDiagnosticLocation(Dtor.getDeleteExpr(), SM, CallerCtx); in getLocationForCaller() 572 return PathDiagnosticLocation::createEnd(CallerBody, SM, CallerCtx); in getLocationForCaller() 573 return PathDiagnosticLocation::create(CallerInfo->getDecl(), SM); in getLocationForCaller() 584 PathDiagnosticLocation 585 PathDiagnosticLocation::createBegin(const Decl *D, in createBegin() [all …]
|
D | BugReporter.cpp | 59 if (const Stmt *S = PathDiagnosticLocation::getStmt(N)) in GetPreviousStmt() 67 if (const Stmt *S = PathDiagnosticLocation::getStmt(N)) in GetCurrentOrPreviousStmt() 219 PathDiagnosticLocation *LastCallLocation = nullptr) { in adjustCallLocations() 238 PathDiagnosticLocation *ThisCallLocation; in adjustCallLocations() 334 PathDiagnosticLocation ExecutionContinues(const ExplodedNode *N); 336 PathDiagnosticLocation ExecutionContinues(llvm::raw_string_ostream &os, 351 PathDiagnosticLocation getEnclosingStmtLocation(const Stmt *S); 363 PathDiagnosticLocation 365 if (const Stmt *S = PathDiagnosticLocation::getNextStmt(N)) in ExecutionContinues() 366 return PathDiagnosticLocation(S, getSourceManager(), LC); in ExecutionContinues() [all …]
|
D | BugReporterVisitors.cpp | 111 PathDiagnosticLocation L = in getDefaultEndPath() 112 PathDiagnosticLocation::createEndOfPath(EndPathNode,BRC.getSourceManager()); in getDefaultEndPath() 325 PathDiagnosticLocation L(Ret, BRC.getSourceManager(), StackFrame); in visitNodeInitial() 693 PathDiagnosticLocation L; in VisitNode() 695 L = PathDiagnosticLocation(InitE, BRC.getSourceManager(), in VisitNode() 699 L = PathDiagnosticLocation::create(P, BRC.getSourceManager()); in VisitNode() 768 PathDiagnosticLocation L = in VisitNode() 769 PathDiagnosticLocation::create(P, BRC.getSourceManager()); in VisitNode() 1097 PathDiagnosticLocation L(Receiver, BRC.getSourceManager(), in VisitNode() 1399 PathDiagnosticLocation Loc(Cond, BRC.getSourceManager(), LCtx); in VisitTrueTest() [all …]
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | CheckSecuritySyntaxOnly.cpp | 293 PathDiagnosticLocation FSLoc = in checkLoopConditionForFloat() 294 PathDiagnosticLocation::createBegin(FS, BR.getSourceManager(), AC); in checkLoopConditionForFloat() 328 PathDiagnosticLocation CELoc = in checkCall_gets() 329 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_gets() 368 PathDiagnosticLocation CELoc = in checkCall_getpw() 369 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_getpw() 409 PathDiagnosticLocation CELoc = in checkCall_mktemp() 410 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_mktemp() 481 PathDiagnosticLocation CELoc = in checkCall_mkstemp() 482 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_mkstemp() [all …]
|
D | IdenticalExprChecker.cpp | 70 PathDiagnosticLocation ELoc = in reportIdenticalExpr() 71 PathDiagnosticLocation::createOperatorLoc(B, BR.getSourceManager()); in reportIdenticalExpr() 125 PathDiagnosticLocation ELoc(Cond2, BR.getSourceManager(), AC); in VisitIfStmt() 154 PathDiagnosticLocation ELoc = in VisitIfStmt() 155 PathDiagnosticLocation::createBegin(I, BR.getSourceManager(), AC); in VisitIfStmt() 237 PathDiagnosticLocation ELoc = in checkComparisonOp() 238 PathDiagnosticLocation::createOperatorLoc(B, BR.getSourceManager()); in checkComparisonOp() 258 PathDiagnosticLocation ELoc = in VisitConditionalOperator() 259 PathDiagnosticLocation::createConditionalColonLoc( in VisitConditionalOperator()
|
D | CheckObjCDealloc.cpp | 145 PathDiagnosticLocation DLoc = in checkObjCDealloc() 146 PathDiagnosticLocation::createBegin(D, BR.getSourceManager()); in checkObjCDealloc() 219 PathDiagnosticLocation SDLoc = in checkObjCDealloc() 220 PathDiagnosticLocation::createBegin(I, BR.getSourceManager()); in checkObjCDealloc()
|
D | NSErrorChecker.cpp | 75 PathDiagnosticLocation L = in checkASTDecl() 76 PathDiagnosticLocation::create(D, BR.getSourceManager()); in checkASTDecl() 122 PathDiagnosticLocation L = in checkASTDecl() 123 PathDiagnosticLocation::create(D, BR.getSourceManager()); in checkASTDecl()
|
D | CheckSizeofPointer.cpp | 65 PathDiagnosticLocation ELoc = in VisitUnaryExprOrTypeTraitExpr() 66 PathDiagnosticLocation::createBegin(E, BR.getSourceManager(), AC); in VisitUnaryExprOrTypeTraitExpr()
|
D | DeadStoresChecker.cpp | 165 PathDiagnosticLocation L, SourceRange R) { in Report() 223 PathDiagnosticLocation ExLoc = in CheckVarDecl() 224 PathDiagnosticLocation::createBegin(Ex, BR.getSourceManager(), AC); in CheckVarDecl() 379 PathDiagnosticLocation Loc = in observeStmt() 380 PathDiagnosticLocation::create(V, BR.getSourceManager()); in observeStmt()
|
D | LLVMConventionsChecker.cpp | 184 PathDiagnosticLocation VDLoc = in VisitVarDecl() 185 PathDiagnosticLocation::createBegin(VD, BR.getSourceManager()); in VisitVarDecl() 289 PathDiagnosticLocation L = PathDiagnosticLocation::createBegin( in ReportError()
|
D | CheckObjCInstMethSignature.cpp | 69 PathDiagnosticLocation MethDLoc = in CompareReturnTypes() 70 PathDiagnosticLocation::createBegin(MethDerived, in CompareReturnTypes()
|
D | AnalyzerStatsChecker.cpp | 116 output.str(), PathDiagnosticLocation(D, SM)); in checkEndAnalysis() 133 PathDiagnosticLocation::createBegin(CS->getStmt(), SM, LC)); in checkEndAnalysis()
|
D | ObjCMissingSuperCallChecker.cpp | 198 PathDiagnosticLocation DLoc = in checkASTDecl() 199 PathDiagnosticLocation::createEnd(MD->getBody(), in checkASTDecl()
|
D | ObjCContainersASTChecker.cpp | 144 PathDiagnosticLocation CELoc = in VisitCallExpr() 145 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in VisitCallExpr()
|
D | IvarInvalidationChecker.cpp | 546 PathDiagnosticLocation IvarDecLocation = in reportNoInvalidationMethod() 547 PathDiagnosticLocation::createBegin(FirstIvarDecl, BR.getSourceManager()); in reportNoInvalidationMethod() 563 PathDiagnosticLocation MethodDecLocation = in reportIvarNeedsInvalidation() 564 PathDiagnosticLocation::createEnd(MethodD->getBody(), in reportIvarNeedsInvalidation() 576 PathDiagnosticLocation::createBegin(IvarD, BR.getSourceManager())); in reportIvarNeedsInvalidation()
|
D | CStringSyntaxChecker.cpp | 144 PathDiagnosticLocation Loc = in VisitCallExpr() 145 PathDiagnosticLocation::createBegin(LenArg, BR.getSourceManager(), AC); in VisitCallExpr()
|
D | ObjCUnusedIVarsChecker.cpp | 164 PathDiagnosticLocation L = in checkObjCUnusedIvar() 165 PathDiagnosticLocation::create(I->first, BR.getSourceManager()); in checkObjCUnusedIvar()
|
D | VirtualCallChecker.cpp | 190 PathDiagnosticLocation CELoc = in ReportVirtualCall() 191 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in ReportVirtualCall()
|
D | UnreachableCodeChecker.cpp | 151 PathDiagnosticLocation DL; in checkEndAnalysis() 155 DL = PathDiagnosticLocation::createBegin(S, B.getSourceManager(), LC); in checkEndAnalysis()
|
D | MallocSizeofChecker.cpp | 238 PathDiagnosticLocation L = in checkASTCodeBody() 239 PathDiagnosticLocation::createBegin(i->AllocCall->getCallee(), in checkASTCodeBody()
|
D | TestAfterDivZeroChecker.cpp | 125 PathDiagnosticLocation L = in REGISTER_SET_WITH_PROGRAMSTATE() 126 PathDiagnosticLocation::create(P, BRC.getSourceManager()); in REGISTER_SET_WITH_PROGRAMSTATE()
|
D | MacOSKeychainAPIChecker.cpp | 536 PathDiagnosticLocation LocUsedForUniqueing; in generateAllocatedDataNotReleasedReport() 546 LocUsedForUniqueing = PathDiagnosticLocation::createBegin(AllocStmt, in generateAllocatedDataNotReleasedReport() 626 PathDiagnosticLocation Pos(ArgExpr, BRC.getSourceManager(), in VisitNode()
|
D | DirectIvarAssignment.cpp | 204 PathDiagnosticLocation(IvarRef, BR.getSourceManager(), DCtx)); in VisitBinaryOperator()
|