Home
last modified time | relevance | path

Searched refs:PathDiagnosticLocation (Results 1 – 25 of 37) sorted by relevance

12

/external/clang/include/clang/StaticAnalyzer/Core/BugReporter/
DPathDiagnostic.h134 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 …]
DBugReporter.h78 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/
DPathDiagnostic.cpp109 PathDiagnosticLocation LocationToUnique, in PathDiagnostic()
539 static PathDiagnosticLocation
548 return PathDiagnosticLocation(Source.castAs<CFGStmt>().getStmt(), in getLocationForCaller()
552 return PathDiagnosticLocation(Init.getInitializer()->getInit(), in getLocationForCaller()
557 return PathDiagnosticLocation::createEnd(Dtor.getTriggerStmt(), in getLocationForCaller()
562 return PathDiagnosticLocation(Dtor.getDeleteExpr(), SM, CallerCtx); in getLocationForCaller()
568 return PathDiagnosticLocation::createEnd(CallerBody, SM, CallerCtx); in getLocationForCaller()
569 return PathDiagnosticLocation::create(CallerInfo->getDecl(), SM); in getLocationForCaller()
579 PathDiagnosticLocation
580 PathDiagnosticLocation::createBegin(const Decl *D, in createBegin()
[all …]
DBugReporter.cpp59 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 …]
DBugReporterVisitors.cpp112 PathDiagnosticLocation L = in getDefaultEndPath()
113 PathDiagnosticLocation::createEndOfPath(EndPathNode,BRC.getSourceManager()); in getDefaultEndPath()
326 PathDiagnosticLocation L(Ret, BRC.getSourceManager(), StackFrame); in visitNodeInitial()
697 PathDiagnosticLocation L; in VisitNode()
699 L = PathDiagnosticLocation(InitE, BRC.getSourceManager(), in VisitNode()
703 L = PathDiagnosticLocation::create(P, BRC.getSourceManager()); in VisitNode()
772 PathDiagnosticLocation L = in VisitNode()
773 PathDiagnosticLocation::create(P, BRC.getSourceManager()); in VisitNode()
1155 PathDiagnosticLocation L(Receiver, BRC.getSourceManager(), in VisitNode()
1456 PathDiagnosticLocation Loc(Cond, BRC.getSourceManager(), LCtx); in VisitTrueTest()
[all …]
/external/clang/lib/StaticAnalyzer/Checkers/
DCheckSecuritySyntaxOnly.cpp292 PathDiagnosticLocation FSLoc = in checkLoopConditionForFloat()
293 PathDiagnosticLocation::createBegin(FS, BR.getSourceManager(), AC); in checkLoopConditionForFloat()
327 PathDiagnosticLocation CELoc = in checkCall_gets()
328 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_gets()
367 PathDiagnosticLocation CELoc = in checkCall_getpw()
368 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_getpw()
408 PathDiagnosticLocation CELoc = in checkCall_mktemp()
409 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_mktemp()
480 PathDiagnosticLocation CELoc = in checkCall_mkstemp()
481 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_mkstemp()
[all …]
DIdenticalExprChecker.cpp70 PathDiagnosticLocation ELoc = in reportIdenticalExpr()
71 PathDiagnosticLocation::createOperatorLoc(B, BR.getSourceManager()); in reportIdenticalExpr()
120 PathDiagnosticLocation ELoc(InnerIf->getCond(), BR.getSourceManager(), AC); in VisitIfStmt()
143 PathDiagnosticLocation ELoc(Cond2, BR.getSourceManager(), AC); in VisitIfStmt()
172 PathDiagnosticLocation ELoc = in VisitIfStmt()
173 PathDiagnosticLocation::createBegin(I, BR.getSourceManager(), AC); in VisitIfStmt()
255 PathDiagnosticLocation ELoc = in checkComparisonOp()
256 PathDiagnosticLocation::createOperatorLoc(B, BR.getSourceManager()); in checkComparisonOp()
276 PathDiagnosticLocation ELoc = in VisitConditionalOperator()
277 PathDiagnosticLocation::createConditionalColonLoc( in VisitConditionalOperator()
DNSErrorChecker.cpp75 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()
DLLVMConventionsChecker.cpp183 PathDiagnosticLocation VDLoc = in VisitVarDecl()
184 PathDiagnosticLocation::createBegin(VD, BR.getSourceManager()); in VisitVarDecl()
287 PathDiagnosticLocation L = PathDiagnosticLocation::createBegin( in ReportError()
DCheckSizeofPointer.cpp65 PathDiagnosticLocation ELoc = in VisitUnaryExprOrTypeTraitExpr()
66 PathDiagnosticLocation::createBegin(E, BR.getSourceManager(), AC); in VisitUnaryExprOrTypeTraitExpr()
DDeadStoresChecker.cpp165 PathDiagnosticLocation L, SourceRange R) { in Report()
223 PathDiagnosticLocation ExLoc = in CheckVarDecl()
224 PathDiagnosticLocation::createBegin(Ex, BR.getSourceManager(), AC); in CheckVarDecl()
381 PathDiagnosticLocation Loc = in observeStmt()
382 PathDiagnosticLocation::create(V, BR.getSourceManager()); in observeStmt()
DCheckObjCInstMethSignature.cpp69 PathDiagnosticLocation MethDLoc = in CompareReturnTypes()
70 PathDiagnosticLocation::createBegin(MethDerived, in CompareReturnTypes()
DAnalyzerStatsChecker.cpp116 output.str(), PathDiagnosticLocation(D, SM)); in checkEndAnalysis()
133 PathDiagnosticLocation::createBegin(CS->getStmt(), SM, LC)); in checkEndAnalysis()
DObjCMissingSuperCallChecker.cpp196 PathDiagnosticLocation DLoc = in checkASTDecl()
197 PathDiagnosticLocation::createEnd(MD->getBody(), in checkASTDecl()
DObjCContainersASTChecker.cpp143 PathDiagnosticLocation CELoc = in VisitCallExpr()
144 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in VisitCallExpr()
DIvarInvalidationChecker.cpp544 PathDiagnosticLocation IvarDecLocation = in reportNoInvalidationMethod()
545 PathDiagnosticLocation::createBegin(FirstIvarDecl, BR.getSourceManager()); in reportNoInvalidationMethod()
561 PathDiagnosticLocation MethodDecLocation = in reportIvarNeedsInvalidation()
562 PathDiagnosticLocation::createEnd(MethodD->getBody(), in reportIvarNeedsInvalidation()
574 PathDiagnosticLocation::createBegin(IvarD, BR.getSourceManager())); in reportIvarNeedsInvalidation()
DCStringSyntaxChecker.cpp144 PathDiagnosticLocation Loc = in VisitCallExpr()
145 PathDiagnosticLocation::createBegin(LenArg, BR.getSourceManager(), AC); in VisitCallExpr()
DObjCUnusedIVarsChecker.cpp164 PathDiagnosticLocation L = in checkObjCUnusedIvar()
165 PathDiagnosticLocation::create(I->first, BR.getSourceManager()); in checkObjCUnusedIvar()
DVirtualCallChecker.cpp190 PathDiagnosticLocation CELoc = in ReportVirtualCall()
191 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in ReportVirtualCall()
DUnreachableCodeChecker.cpp147 PathDiagnosticLocation DL; in checkEndAnalysis()
151 DL = PathDiagnosticLocation::createBegin(S, B.getSourceManager(), LC); in checkEndAnalysis()
DMallocSizeofChecker.cpp237 PathDiagnosticLocation L = in checkASTCodeBody()
238 PathDiagnosticLocation::createBegin(i->AllocCall->getCallee(), in checkASTCodeBody()
DObjCSuperDeallocChecker.cpp272 PathDiagnosticLocation L = in VisitNode()
273 PathDiagnosticLocation::create(P, BRC.getSourceManager()); in VisitNode()
DPaddingChecker.cpp300 PathDiagnosticLocation CELoc = in reportRecord()
301 PathDiagnosticLocation::create(RD, BR->getSourceManager()); in reportRecord()
DTestAfterDivZeroChecker.cpp125 PathDiagnosticLocation L = in REGISTER_SET_WITH_PROGRAMSTATE()
126 PathDiagnosticLocation::create(P, BRC.getSourceManager()); in REGISTER_SET_WITH_PROGRAMSTATE()
/external/clang/lib/StaticAnalyzer/Checkers/MPI-Checker/
DMPIBugReporter.cpp104 PathDiagnosticLocation L = in VisitNode()
105 PathDiagnosticLocation::create(P, BRC.getSourceManager()); in VisitNode()

12