Home
last modified time | relevance | path

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

/external/clang/include/clang/StaticAnalyzer/Core/BugReporter/
DPathDiagnostic.h127 class PathDiagnosticLocation {
136 PathDiagnosticLocation(SourceLocation L, const SourceManager &sm, in PathDiagnosticLocation() function
153 PathDiagnosticLocation() in PathDiagnosticLocation() function
157 PathDiagnosticLocation(const Stmt *s, in PathDiagnosticLocation() function
169 PathDiagnosticLocation(const Decl *d, const SourceManager &sm) in PathDiagnosticLocation() function
180 PathDiagnosticLocation(SourceLocation loc, const SourceManager &sm) in PathDiagnosticLocation() function
187 static PathDiagnosticLocation create(const Decl *D, in create()
189 return PathDiagnosticLocation(D, SM); in create()
193 static PathDiagnosticLocation createBegin(const Decl *D,
197 static PathDiagnosticLocation createBegin(const Stmt *S,
[all …]
DBugReporter.h76 PathDiagnosticLocation Location;
77 PathDiagnosticLocation UniqueingLocation;
139 BugReport(BugType& bt, StringRef desc, PathDiagnosticLocation l) in BugReport()
152 PathDiagnosticLocation LocationToUnique) in BugReport()
219 virtual PathDiagnosticLocation getLocation(const SourceManager &SM) const;
412 StringRef BugStr, PathDiagnosticLocation Loc,
417 StringRef BugStr, PathDiagnosticLocation Loc) {
423 StringRef BugStr, PathDiagnosticLocation Loc,
/external/clang/lib/StaticAnalyzer/Core/
DPathDiagnostic.cpp469 static PathDiagnosticLocation
480 return PathDiagnosticLocation(cast<CFGStmt>(Source).getStmt(), in getLocationForCaller()
484 return PathDiagnosticLocation(Init.getInitializer()->getInit(), in getLocationForCaller()
489 return PathDiagnosticLocation::createEnd(Dtor.getTriggerStmt(), in getLocationForCaller()
496 return PathDiagnosticLocation::createEnd(CallerBody, SM, CallerCtx); in getLocationForCaller()
497 return PathDiagnosticLocation::create(CallerInfo->getDecl(), SM); in getLocationForCaller()
507 PathDiagnosticLocation
508 PathDiagnosticLocation::createBegin(const Decl *D, in createBegin()
510 return PathDiagnosticLocation(D->getLocStart(), SM, SingleLocK); in createBegin()
513 PathDiagnosticLocation
[all …]
DBugReporter.cpp209 PathDiagnosticLocation ExecutionContinues(const ExplodedNode *N);
211 PathDiagnosticLocation ExecutionContinues(llvm::raw_string_ostream &os,
226 PathDiagnosticLocation getEnclosingStmtLocation(const Stmt *S);
238 PathDiagnosticLocation
241 return PathDiagnosticLocation(S, getSourceManager(), LC); in ExecutionContinues()
243 return PathDiagnosticLocation::createDeclEnd(N->getLocationContext(), in ExecutionContinues()
247 PathDiagnosticLocation
255 const PathDiagnosticLocation &Loc = ExecutionContinues(N); in ExecutionContinues()
297 PathDiagnosticLocation
313 return PathDiagnosticLocation(S, SMgr, LC); in getEnclosingStmtLocation()
[all …]
DBugReporterVisitors.cpp106 PathDiagnosticLocation L = in getDefaultEndPath()
107 PathDiagnosticLocation::createEndOfPath(EndPathNode,BRC.getSourceManager()); in getDefaultEndPath()
244 PathDiagnosticLocation L(Ret, BRC.getSourceManager(), StackFrame); in VisitNode()
389 PathDiagnosticLocation L = in VisitNode()
390 PathDiagnosticLocation::create(P, BRC.getSourceManager()); in VisitNode()
438 PathDiagnosticLocation L = in VisitNode()
439 PathDiagnosticLocation::create(P, BRC.getSourceManager()); in VisitNode()
574 PathDiagnosticLocation L(Receiver, BRC.getSourceManager(), in VisitNode()
865 PathDiagnosticLocation Loc(Cond, BRC.getSourceManager(), LCtx); in VisitTrueTest()
901 PathDiagnosticLocation Loc(CondVarExpr, BRC.getSourceManager(), LCtx); in VisitConditionVariable()
[all …]
DPlistDiagnostics.cpp120 const PathDiagnosticLocation &L, const FIDMap& FM, in EmitLocation()
/external/clang/lib/StaticAnalyzer/Checkers/
DCheckSecuritySyntaxOnly.cpp288 PathDiagnosticLocation FSLoc = in checkLoopConditionForFloat()
289 PathDiagnosticLocation::createBegin(FS, BR.getSourceManager(), AC); in checkLoopConditionForFloat()
325 PathDiagnosticLocation CELoc = in checkCall_gets()
326 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()
410 PathDiagnosticLocation CELoc = in checkCall_mktemp()
411 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_mktemp()
483 PathDiagnosticLocation CELoc = in checkCall_mkstemp()
484 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_mkstemp()
[all …]
DCheckSizeofPointer.cpp64 PathDiagnosticLocation ELoc = in VisitUnaryExprOrTypeTraitExpr()
65 PathDiagnosticLocation::createBegin(E, BR.getSourceManager(), AC); in VisitUnaryExprOrTypeTraitExpr()
DCheckObjCDealloc.cpp169 PathDiagnosticLocation DLoc = in checkObjCDealloc()
170 PathDiagnosticLocation::createBegin(D, BR.getSourceManager()); in checkObjCDealloc()
263 PathDiagnosticLocation SDLoc = in checkObjCDealloc()
264 PathDiagnosticLocation::createBegin(*I, BR.getSourceManager()); in checkObjCDealloc()
DNSErrorChecker.cpp75 PathDiagnosticLocation L = in checkASTDecl()
76 PathDiagnosticLocation::create(D, BR.getSourceManager()); in checkASTDecl()
123 PathDiagnosticLocation L = in checkASTDecl()
124 PathDiagnosticLocation::create(D, BR.getSourceManager()); in checkASTDecl()
DDeadStoresChecker.cpp161 PathDiagnosticLocation L, SourceRange R) { in Report()
217 PathDiagnosticLocation ExLoc = in CheckVarDecl()
218 PathDiagnosticLocation::createBegin(Ex, BR.getSourceManager(), AC); in CheckVarDecl()
372 PathDiagnosticLocation Loc = in observeStmt()
373 PathDiagnosticLocation::create(V, BR.getSourceManager()); in observeStmt()
DLLVMConventionsChecker.cpp179 PathDiagnosticLocation VDLoc = in VisitVarDecl()
180 PathDiagnosticLocation::createBegin(VD, BR.getSourceManager()); in VisitVarDecl()
284 PathDiagnosticLocation L = PathDiagnosticLocation::createBegin( in ReportError()
DCheckObjCInstMethSignature.cpp69 PathDiagnosticLocation MethDLoc = in CompareReturnTypes()
70 PathDiagnosticLocation::createBegin(MethDerived, in CompareReturnTypes()
DAnalyzerStatsChecker.cpp116 output.str(), PathDiagnosticLocation(D, SM)); in checkEndAnalysis()
132 PathDiagnosticLocation::createBegin(CS->getStmt(), in checkEndAnalysis()
DObjCContainersASTChecker.cpp145 PathDiagnosticLocation CELoc = in VisitCallExpr()
146 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in VisitCallExpr()
DCStringSyntaxChecker.cpp144 PathDiagnosticLocation Loc = in VisitCallExpr()
145 PathDiagnosticLocation::createBegin(LenArg, BR.getSourceManager(), AC); in VisitCallExpr()
DVirtualCallChecker.cpp182 PathDiagnosticLocation CELoc = in ReportVirtualCall()
183 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in ReportVirtualCall()
DUnreachableCodeChecker.cpp148 PathDiagnosticLocation DL; in checkEndAnalysis()
152 DL = PathDiagnosticLocation::createBegin(S, B.getSourceManager(), LC); in checkEndAnalysis()
DObjCUnusedIVarsChecker.cpp171 PathDiagnosticLocation L = in checkObjCUnusedIvar()
172 PathDiagnosticLocation::create(I->first, BR.getSourceManager()); in checkObjCUnusedIvar()
DMallocSizeofChecker.cpp234 PathDiagnosticLocation L = in checkASTCodeBody()
235 PathDiagnosticLocation::createBegin(i->AllocCall->getCallee(), in checkASTCodeBody()
DMacOSKeychainAPIChecker.cpp560 PathDiagnosticLocation LocUsedForUniqueing; in generateAllocatedDataNotReleasedReport()
562 LocUsedForUniqueing = PathDiagnosticLocation::createBegin(AllocStmt, in generateAllocatedDataNotReleasedReport()
684 PathDiagnosticLocation Pos(ArgExpr, BRC.getSourceManager(), in VisitNode()
DMallocChecker.cpp298 PathDiagnosticLocation L = in getEndPath()
299 PathDiagnosticLocation::createEndOfPath(EndPathNode, in getEndPath()
1013 PathDiagnosticLocation LocUsedForUniqueing; in reportLeak()
1018 LocUsedForUniqueing = PathDiagnosticLocation::createBegin(AllocStmt, in reportLeak()
1585 PathDiagnosticLocation Pos(S, BRC.getSourceManager(), in VisitNode()
DMallocOverflowSecurityChecker.cpp219 PathDiagnosticLocation::createOperatorLoc(i->mulop, in OutputPossibleOverflows()
DRetainCountChecker.cpp1823 PathDiagnosticLocation getLocation(const SourceManager &SM) const { in getLocation()
1987 PathDiagnosticLocation Pos(S, BRC.getSourceManager(), in VisitNode()
2158 PathDiagnosticLocation Pos(S, BRC.getSourceManager(), in VisitNode()
2245 PathDiagnosticLocation L = PathDiagnosticLocation::createEndOfPath(LeakN, SM); in getEndPath()
2337 Location = PathDiagnosticLocation::createBegin(AllocStmt, SMgr, in CFRefLeakReport()