Home
last modified time | relevance | path

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

123

/freebsd/contrib/llvm-project/clang/include/clang/Analysis/
H A DPathDiagnostic.h195 class PathDiagnosticLocation {
205 PathDiagnosticLocation(SourceLocation L, const SourceManager &sm, Kind kind) in PathDiagnosticLocation() function
217 PathDiagnosticLocation() = default;
220 PathDiagnosticLocation(const Stmt *s, const SourceManager &sm, in PathDiagnosticLocation() function
231 PathDiagnosticLocation(const Decl *d, const SourceManager &sm) in PathDiagnosticLocation() function
241 PathDiagnosticLocation(SourceLocation loc, const SourceManager &sm) in PathDiagnosticLocation() function
248 static PathDiagnosticLocation create(const Decl *D, in create()
250 return PathDiagnosticLocation(D, SM); in create()
254 static PathDiagnosticLocation createBegin(const Decl *D,
260 static PathDiagnosticLocation
[all …]
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DPathDiagnostic.cpp112 PathDiagnosticLocation LocationToUnique, const Decl *DeclToUnique, in PathDiagnostic()
471 SourceLocation PathDiagnosticLocation::getValidSourceLocation( in getValidSourceLocation()
515 static PathDiagnosticLocation
526 return PathDiagnosticLocation(Source.castAs<CFGStmt>().getStmt(), in getLocationForCaller()
530 return PathDiagnosticLocation(Init.getInitializer()->getInit(), in getLocationForCaller()
535 return PathDiagnosticLocation::createEnd(Dtor.getTriggerStmt(), in getLocationForCaller()
540 return PathDiagnosticLocation(Dtor.getDeleteExpr(), SM, CallerCtx); in getLocationForCaller()
546 return PathDiagnosticLocation::createEnd(CallerBody, SM, CallerCtx); in getLocationForCaller()
547 return PathDiagnosticLocation::create(CallerInfo->getDecl(), SM); in getLocationForCaller()
551 return PathDiagnosticLocation(Alloc.getAllocatorExpr(), SM, CallerCtx); in getLocationForCaller()
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DBugReporter.cpp257 PathDiagnosticLocation &PrevLoc) const;
264 PathDiagnosticLocation &Start) const;
268 PathDiagnosticLocation &Start) const;
274 PathDiagnosticLocation
277 PathDiagnosticLocation
528 PathDiagnosticLocation *LastCallLocation = nullptr) { in adjustCallLocations()
545 PathDiagnosticLocation *ThisCallLocation; in adjustCallLocations()
611 PathDiagnosticLocation PathDiagnosticBuilder::ExecutionContinues( in ExecutionContinues()
614 return PathDiagnosticLocation(S, getSourceManager(), in ExecutionContinues()
617 return PathDiagnosticLocation::createDeclEnd(C.getCurrLocationContext(), in ExecutionContinues()
[all …]
H A DBugSuppression.cpp155 PathDiagnosticLocation Location = R.getLocation(); in isSuppressed()
156 PathDiagnosticLocation UniqueingLocation = R.getUniqueingLocation(); in isSuppressed()
163 bool BugSuppression::isSuppressed(const PathDiagnosticLocation &Location, in isSuppressed()
H A DBugReporterVisitors.cpp363 PathDiagnosticLocation L = BR.getLocation(); in getDefaultEndPath()
700 PathDiagnosticLocation L = in maybeEmitNote()
701 PathDiagnosticLocation::create(N->getLocation(), SM); in maybeEmitNote()
1037 PathDiagnosticLocation L(Ret, BRC.getSourceManager(), CalleeSFC); in visitNodeInitial()
1825 PathDiagnosticLocation L = in VisitNode()
1826 PathDiagnosticLocation::create(P, BRC.getSourceManager()); in VisitNode()
1986 PathDiagnosticLocation::createBegin( in constructDebugPieceForTrackedCondition()
2179 PathDiagnosticLocation L; in constructNote()
2181 L = PathDiagnosticLocation(SI.SourceOfTheValue, BRC.getSourceManager(), in constructNote()
2185 L = PathDiagnosticLocation::create(P, BRC.getSourceManager()); in constructNote()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/BugReporter/
H A DBugReporter.h173 virtual PathDiagnosticLocation getLocation() const = 0;
189 virtual PathDiagnosticLocation getUniqueingLocation() const = 0;
201 void addNote(StringRef Msg, const PathDiagnosticLocation &Pos,
252 PathDiagnosticLocation Location;
256 BasicBugReport(const BugType &bt, StringRef desc, PathDiagnosticLocation l) in BasicBugReport()
263 PathDiagnosticLocation getLocation() const override { in getLocation()
272 PathDiagnosticLocation getUniqueingLocation() const override { in getUniqueingLocation()
355 PathDiagnosticLocation UniqueingLocation;
388 PathDiagnosticLocation LocationToUnique, in PathSensitiveBugReport()
395 PathDiagnosticLocation LocationToUnique,
[all …]
H A DBugSuppression.h27 class PathDiagnosticLocation; variable
40 bool isSuppressed(const PathDiagnosticLocation &Location,
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/
H A DRetainCountDiagnostics.h74 PathDiagnosticLocation Location;
89 PathDiagnosticLocation getLocation() const override { in getLocation()
94 PathDiagnosticLocation getEndOfPath() const { in getEndOfPath()
H A DRetainCountDiagnostics.cpp417 PathDiagnosticLocation L = PathDiagnosticLocation::create(CallExitLoc, SM); in annotateConsumedSummaryMismatch()
438 PathDiagnosticLocation L = PathDiagnosticLocation(PVD, SM); in annotateStartParameter()
495 auto Pos = PathDiagnosticLocation::create(N->getLocation(), SM); in VisitNode()
537 PathDiagnosticLocation Pos(S, SM, N->getLocationContext()); in VisitNode()
589 PathDiagnosticLocation Pos(S, BRC.getSourceManager(), in VisitNode()
770 PathDiagnosticLocation L = cast<RefLeakReport>(BR).getEndOfPath(); in getEndPath()
864 PathDiagnosticLocation ParamLocation = in deriveParamLocation()
865 PathDiagnosticLocation::create(PDecl, SMgr); in deriveParamLocation()
904 PathDiagnosticLocation AllocLocation = PathDiagnosticLocation::createBegin( in deriveAllocLocation()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DCStringSyntaxChecker.cpp222 PathDiagnosticLocation Loc = in VisitCallExpr()
223 PathDiagnosticLocation::createBegin(LenArg, BR.getSourceManager(), AC); in VisitCallExpr()
247 PathDiagnosticLocation Loc = in VisitCallExpr()
248 PathDiagnosticLocation::createBegin(LenArg, BR.getSourceManager(), AC); in VisitCallExpr()
H A DLLVMConventionsChecker.cpp181 PathDiagnosticLocation VDLoc = in VisitVarDecl()
182 PathDiagnosticLocation::createBegin(VD, BR.getSourceManager()); in VisitVarDecl()
285 PathDiagnosticLocation L = PathDiagnosticLocation::createBegin( in ReportError()
H A DNSErrorChecker.cpp75 PathDiagnosticLocation L = in checkASTDecl()
76 PathDiagnosticLocation::create(D, BR.getSourceManager()); in checkASTDecl()
133 PathDiagnosticLocation L = in checkASTDecl()
134 PathDiagnosticLocation::create(D, BR.getSourceManager()); in checkASTDecl()
H A DCheckObjCInstMethSignature.cpp66 PathDiagnosticLocation MethDLoc = in CompareReturnTypes()
67 PathDiagnosticLocation::createBegin(MethDerived, in CompareReturnTypes()
H A DDeadStoresChecker.cpp192 PathDiagnosticLocation L, SourceRange R) { in Report()
279 PathDiagnosticLocation ExLoc = in CheckVarDecl()
280 PathDiagnosticLocation::createBegin(Ex, BR.getSourceManager(), AC); in CheckVarDecl()
436 PathDiagnosticLocation Loc = in observeStmt()
437 PathDiagnosticLocation::create(V, BR.getSourceManager()); in observeStmt()
H A DCastToStructChecker.cpp64 PathDiagnosticLocation Loc(CE, BR.getSourceManager(), AC); in VisitCastExpr()
96 PathDiagnosticLocation Loc(CE, BR.getSourceManager(), AC); in VisitCastExpr()
H A DAnalyzerStatsChecker.cpp111 output.str(), PathDiagnosticLocation(D, SM)); in checkEndAnalysis()
127 PathDiagnosticLocation::createBegin(CS->getStmt(), SM, LC)); in checkEndAnalysis()
H A DObjCMissingSuperCallChecker.cpp193 PathDiagnosticLocation DLoc = in checkASTDecl()
194 PathDiagnosticLocation::createEnd(MD->getBody(), in checkASTDecl()
H A DObjCContainersASTChecker.cpp142 PathDiagnosticLocation CELoc = in VisitCallExpr()
143 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in VisitCallExpr()
H A DIvarInvalidationChecker.cpp528 PathDiagnosticLocation IvarDecLocation = in reportNoInvalidationMethod()
529 PathDiagnosticLocation::createBegin(FirstIvarDecl, BR.getSourceManager()); in reportNoInvalidationMethod()
545 PathDiagnosticLocation MethodDecLocation = in reportIvarNeedsInvalidation()
546 PathDiagnosticLocation::createEnd(MethodD->getBody(), in reportIvarNeedsInvalidation()
558 PathDiagnosticLocation::createBegin(IvarD, BR.getSourceManager())); in reportIvarNeedsInvalidation()
H A DValistChecker.cpp87 PathDiagnosticLocation L = BR.getLocation(); in getEndPath()
284 PathDiagnosticLocation LocUsedForUniqueing; in reportLeakedVALists()
287 LocUsedForUniqueing = PathDiagnosticLocation::createBegin( in reportLeakedVALists()
397 PathDiagnosticLocation Pos(S, BRC.getSourceManager(), in VisitNode()
H A DObjCUnusedIVarsChecker.cpp160 PathDiagnosticLocation L = in checkObjCUnusedIvar()
161 PathDiagnosticLocation::create(Ivar, BR.getSourceManager()); in checkObjCUnusedIvar()
H A DObjCAutoreleaseWriteChecker.cpp133 PathDiagnosticLocation Location = PathDiagnosticLocation::createBegin( in emitDiagnostics()
H A DRunLoopAutoreleaseLeakChecker.cpp112 PathDiagnosticLocation Location = PathDiagnosticLocation::createBegin( in emitDiagnostics()
H A DUnreachableCodeChecker.cpp146 PathDiagnosticLocation DL; in checkEndAnalysis()
158 DL = PathDiagnosticLocation::createBegin(S, B.getSourceManager(), LC); in checkEndAnalysis()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/MPI-Checker/
H A DMPIBugReporter.cpp105 PathDiagnosticLocation L = in VisitNode()
106 PathDiagnosticLocation::create(P, BRC.getSourceManager()); in VisitNode()

123