Home
last modified time | relevance | path

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

123

/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Analysis/
HDPathDiagnostic.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-13-stable/contrib/llvm-project/clang/lib/Analysis/
HDPathDiagnostic.cpp117 PathDiagnosticLocation LocationToUnique, const Decl *DeclToUnique, in PathDiagnostic()
476 SourceLocation PathDiagnosticLocation::getValidSourceLocation( in getValidSourceLocation()
520 static PathDiagnosticLocation
531 return PathDiagnosticLocation(Source.castAs<CFGStmt>().getStmt(), in getLocationForCaller()
535 return PathDiagnosticLocation(Init.getInitializer()->getInit(), in getLocationForCaller()
540 return PathDiagnosticLocation::createEnd(Dtor.getTriggerStmt(), in getLocationForCaller()
545 return PathDiagnosticLocation(Dtor.getDeleteExpr(), SM, CallerCtx); in getLocationForCaller()
551 return PathDiagnosticLocation::createEnd(CallerBody, SM, CallerCtx); in getLocationForCaller()
552 return PathDiagnosticLocation::create(CallerInfo->getDecl(), SM); in getLocationForCaller()
556 return PathDiagnosticLocation(Alloc.getAllocatorExpr(), SM, CallerCtx); in getLocationForCaller()
[all …]
/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
HDCheckSecuritySyntaxOnly.cpp334 PathDiagnosticLocation FSLoc = in checkLoopConditionForFloat()
335 PathDiagnosticLocation::createBegin(FS, BR.getSourceManager(), AC); in checkLoopConditionForFloat()
374 PathDiagnosticLocation CELoc = in checkCall_bcmp()
375 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_bcmp()
416 PathDiagnosticLocation CELoc = in checkCall_bcopy()
417 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_bcopy()
457 PathDiagnosticLocation CELoc = in checkCall_bzero()
458 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_bzero()
495 PathDiagnosticLocation CELoc = in checkCall_gets()
496 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_gets()
[all …]
HDIdenticalExprChecker.cpp69 PathDiagnosticLocation ELoc = in reportIdenticalExpr()
70 PathDiagnosticLocation::createOperatorLoc(B, BR.getSourceManager()); in reportIdenticalExpr()
119 PathDiagnosticLocation ELoc(InnerIf->getCond(), BR.getSourceManager(), AC); in VisitIfStmt()
142 PathDiagnosticLocation ELoc(Cond2, BR.getSourceManager(), AC); in VisitIfStmt()
171 PathDiagnosticLocation ELoc = in VisitIfStmt()
172 PathDiagnosticLocation::createBegin(I, BR.getSourceManager(), AC); in VisitIfStmt()
254 PathDiagnosticLocation ELoc = in checkComparisonOp()
255 PathDiagnosticLocation::createOperatorLoc(B, BR.getSourceManager()); in checkComparisonOp()
278 PathDiagnosticLocation ELoc = in VisitConditionalOperator()
279 PathDiagnosticLocation::createConditionalColonLoc( in VisitConditionalOperator()
HDCloneChecker.cpp100 static PathDiagnosticLocation makeLocation(const StmtSequence &S, in makeLocation()
103 return PathDiagnosticLocation::createBegin( in makeLocation()
169 PathDiagnosticLocation::createBegin(Pair.FirstCloneInfo.Mention, SM, in reportSuspiciousClones()
175 PathDiagnosticLocation::createBegin(Pair.SecondCloneInfo.Mention, in reportSuspiciousClones()
HDCStringSyntaxChecker.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()
HDNSErrorChecker.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()
HDLLVMConventionsChecker.cpp181 PathDiagnosticLocation VDLoc = in VisitVarDecl()
182 PathDiagnosticLocation::createBegin(VD, BR.getSourceManager()); in VisitVarDecl()
285 PathDiagnosticLocation L = PathDiagnosticLocation::createBegin( in ReportError()
HDCheckObjCInstMethSignature.cpp66 PathDiagnosticLocation MethDLoc = in CompareReturnTypes()
67 PathDiagnosticLocation::createBegin(MethDerived, in CompareReturnTypes()
HDCastToStructChecker.cpp64 PathDiagnosticLocation Loc(CE, BR.getSourceManager(), AC); in VisitCastExpr()
96 PathDiagnosticLocation Loc(CE, BR.getSourceManager(), AC); in VisitCastExpr()
HDDeadStoresChecker.cpp193 PathDiagnosticLocation L, SourceRange R) { in Report()
280 PathDiagnosticLocation ExLoc = in CheckVarDecl()
281 PathDiagnosticLocation::createBegin(Ex, BR.getSourceManager(), AC); in CheckVarDecl()
437 PathDiagnosticLocation Loc = in observeStmt()
438 PathDiagnosticLocation::create(V, BR.getSourceManager()); in observeStmt()
HDAnalyzerStatsChecker.cpp115 output.str(), PathDiagnosticLocation(D, SM)); in checkEndAnalysis()
131 PathDiagnosticLocation::createBegin(CS->getStmt(), SM, LC)); in checkEndAnalysis()
HDObjCMissingSuperCallChecker.cpp194 PathDiagnosticLocation DLoc = in checkASTDecl()
195 PathDiagnosticLocation::createEnd(MD->getBody(), in checkASTDecl()
HDObjCContainersASTChecker.cpp142 PathDiagnosticLocation CELoc = in VisitCallExpr()
143 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in VisitCallExpr()
HDObjCUnusedIVarsChecker.cpp161 PathDiagnosticLocation L = in checkObjCUnusedIvar()
162 PathDiagnosticLocation::create(Ivar, BR.getSourceManager()); in checkObjCUnusedIvar()
HDIvarInvalidationChecker.cpp529 PathDiagnosticLocation IvarDecLocation = in reportNoInvalidationMethod()
530 PathDiagnosticLocation::createBegin(FirstIvarDecl, BR.getSourceManager()); in reportNoInvalidationMethod()
546 PathDiagnosticLocation MethodDecLocation = in reportIvarNeedsInvalidation()
547 PathDiagnosticLocation::createEnd(MethodD->getBody(), in reportIvarNeedsInvalidation()
559 PathDiagnosticLocation::createBegin(IvarD, BR.getSourceManager())); in reportIvarNeedsInvalidation()
HDValistChecker.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()
/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
HDBugReporter.cpp263 PathDiagnosticLocation &PrevLoc) const;
270 PathDiagnosticLocation &Start) const;
274 PathDiagnosticLocation &Start) const;
280 PathDiagnosticLocation
283 PathDiagnosticLocation
507 PathDiagnosticLocation *LastCallLocation = nullptr) { in adjustCallLocations()
524 PathDiagnosticLocation *ThisCallLocation; in adjustCallLocations()
590 PathDiagnosticLocation PathDiagnosticBuilder::ExecutionContinues( in ExecutionContinues()
593 return PathDiagnosticLocation(S, getSourceManager(), in ExecutionContinues()
596 return PathDiagnosticLocation::createDeclEnd(C.getCurrLocationContext(), in ExecutionContinues()
[all …]
HDBugSuppression.cpp130 PathDiagnosticLocation Location = R.getLocation(); in isSuppressed()
131 PathDiagnosticLocation UniqueingLocation = R.getUniqueingLocation(); in isSuppressed()
138 bool BugSuppression::isSuppressed(const PathDiagnosticLocation &Location, in isSuppressed()
HDBugReporterVisitors.cpp367 PathDiagnosticLocation L = BR.getLocation(); in getDefaultEndPath()
793 PathDiagnosticLocation L = in maybeEmitNote()
794 PathDiagnosticLocation::create(N->getLocation(), SM); in maybeEmitNote()
1130 PathDiagnosticLocation L(Ret, BRC.getSourceManager(), CalleeSFC); in visitNodeInitial()
1873 PathDiagnosticLocation L = in VisitNode()
1874 PathDiagnosticLocation::create(P, BRC.getSourceManager()); in VisitNode()
2034 PathDiagnosticLocation::createBegin( in constructDebugPieceForTrackedCondition()
2227 PathDiagnosticLocation L; in constructNote()
2229 L = PathDiagnosticLocation(SI.SourceOfTheValue, BRC.getSourceManager(), in constructNote()
2233 L = PathDiagnosticLocation::create(P, BRC.getSourceManager()); in constructNote()
[all …]
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/BugReporter/
HDBugReporter.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 …]
HDBugSuppression.h27 class PathDiagnosticLocation; variable
40 bool isSuppressed(const PathDiagnosticLocation &Location,
/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/
HDRetainCountDiagnostics.h74 PathDiagnosticLocation Location;
89 PathDiagnosticLocation getLocation() const override { in getLocation()
94 PathDiagnosticLocation getEndOfPath() const { in getEndOfPath()
HDRetainCountDiagnostics.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()
769 PathDiagnosticLocation L = cast<RefLeakReport>(BR).getEndOfPath(); in getEndPath()
863 PathDiagnosticLocation ParamLocation = in deriveParamLocation()
864 PathDiagnosticLocation::create(PDecl, SMgr); in deriveParamLocation()
903 PathDiagnosticLocation AllocLocation = PathDiagnosticLocation::createBegin( in deriveAllocLocation()
/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/MPI-Checker/
HDMPIBugReporter.cpp106 PathDiagnosticLocation L = in VisitNode()
107 PathDiagnosticLocation::create(P, BRC.getSourceManager()); in VisitNode()

123