Home
last modified time | relevance | path

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

123

/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Analysis/
H A DPathDiagnostic.h196 class PathDiagnosticLocation {
206 PathDiagnosticLocation(SourceLocation L, const SourceManager &sm, Kind kind) in PathDiagnosticLocation() function
218 PathDiagnosticLocation() = default;
221 PathDiagnosticLocation(const Stmt *s, const SourceManager &sm, in PathDiagnosticLocation() function
232 PathDiagnosticLocation(const Decl *d, const SourceManager &sm) in PathDiagnosticLocation() function
242 PathDiagnosticLocation(SourceLocation loc, const SourceManager &sm) in PathDiagnosticLocation() function
249 static PathDiagnosticLocation create(const Decl *D, in create()
251 return PathDiagnosticLocation(D, SM); in create()
255 static PathDiagnosticLocation createBegin(const Decl *D,
261 static PathDiagnosticLocation
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/Analysis/
H A DPathDiagnostic.cpp123 PathDiagnosticLocation LocationToUnique, const Decl *DeclToUnique, in PathDiagnostic()
478 SourceLocation PathDiagnosticLocation::getValidSourceLocation( in getValidSourceLocation()
522 static PathDiagnosticLocation
533 return PathDiagnosticLocation(Source.castAs<CFGStmt>().getStmt(), in getLocationForCaller()
537 return PathDiagnosticLocation(Init.getInitializer()->getInit(), in getLocationForCaller()
542 return PathDiagnosticLocation::createEnd(Dtor.getTriggerStmt(), in getLocationForCaller()
547 return PathDiagnosticLocation(Dtor.getDeleteExpr(), SM, CallerCtx); in getLocationForCaller()
553 return PathDiagnosticLocation::createEnd(CallerBody, SM, CallerCtx); in getLocationForCaller()
554 return PathDiagnosticLocation::create(CallerInfo->getDecl(), SM); in getLocationForCaller()
558 return PathDiagnosticLocation(Alloc.getAllocatorExpr(), SM, CallerCtx); in getLocationForCaller()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/
H A DCheckSecuritySyntaxOnly.cpp336 PathDiagnosticLocation FSLoc = in checkLoopConditionForFloat()
337 PathDiagnosticLocation::createBegin(FS, BR.getSourceManager(), AC); in checkLoopConditionForFloat()
376 PathDiagnosticLocation CELoc = in checkCall_bcmp()
377 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_bcmp()
418 PathDiagnosticLocation CELoc = in checkCall_bcopy()
419 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_bcopy()
459 PathDiagnosticLocation CELoc = in checkCall_bzero()
460 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_bzero()
497 PathDiagnosticLocation CELoc = in checkCall_gets()
498 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_gets()
[all …]
H A DIdenticalExprChecker.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()
H A DCloneChecker.cpp99 static PathDiagnosticLocation makeLocation(const StmtSequence &S, in makeLocation()
102 return PathDiagnosticLocation::createBegin( in makeLocation()
176 PathDiagnosticLocation::createBegin(Pair.FirstCloneInfo.Mention, SM, in reportSuspiciousClones()
182 PathDiagnosticLocation::createBegin(Pair.SecondCloneInfo.Mention, in reportSuspiciousClones()
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 DNSErrorChecker.cpp74 PathDiagnosticLocation L = in checkASTDecl()
75 PathDiagnosticLocation::create(D, BR.getSourceManager()); in checkASTDecl()
132 PathDiagnosticLocation L = in checkASTDecl()
133 PathDiagnosticLocation::create(D, BR.getSourceManager()); in checkASTDecl()
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 DCheckSizeofPointer.cpp64 PathDiagnosticLocation ELoc = in VisitUnaryExprOrTypeTraitExpr()
65 PathDiagnosticLocation::createBegin(E, BR.getSourceManager(), AC); in VisitUnaryExprOrTypeTraitExpr()
H A DDeadStoresChecker.cpp196 PathDiagnosticLocation L, SourceRange R) { in Report()
283 PathDiagnosticLocation ExLoc = in CheckVarDecl()
284 PathDiagnosticLocation::createBegin(Ex, BR.getSourceManager(), AC); in CheckVarDecl()
442 PathDiagnosticLocation Loc = in observeStmt()
443 PathDiagnosticLocation::create(V, BR.getSourceManager()); in observeStmt()
H A DCheckObjCInstMethSignature.cpp68 PathDiagnosticLocation MethDLoc = in CompareReturnTypes()
69 PathDiagnosticLocation::createBegin(MethDerived, in CompareReturnTypes()
H A DCastToStructChecker.cpp64 PathDiagnosticLocation Loc(CE, BR.getSourceManager(), AC); in VisitCastExpr()
96 PathDiagnosticLocation Loc(CE, BR.getSourceManager(), AC); in VisitCastExpr()
H A DIvarInvalidationChecker.cpp543 PathDiagnosticLocation IvarDecLocation = in reportNoInvalidationMethod()
544 PathDiagnosticLocation::createBegin(FirstIvarDecl, BR.getSourceManager()); in reportNoInvalidationMethod()
560 PathDiagnosticLocation MethodDecLocation = in reportIvarNeedsInvalidation()
561 PathDiagnosticLocation::createEnd(MethodD->getBody(), in reportIvarNeedsInvalidation()
573 PathDiagnosticLocation::createBegin(IvarD, BR.getSourceManager())); in reportIvarNeedsInvalidation()
H A DAnalyzerStatsChecker.cpp115 output.str(), PathDiagnosticLocation(D, SM)); in checkEndAnalysis()
134 PathDiagnosticLocation::createBegin(CS->getStmt(), SM, LC)); in checkEndAnalysis()
H A DValistChecker.cpp86 PathDiagnosticLocation L = BR.getLocation(); in getEndPath()
285 PathDiagnosticLocation LocUsedForUniqueing; in reportLeakedVALists()
288 LocUsedForUniqueing = PathDiagnosticLocation::createBegin( in reportLeakedVALists()
398 PathDiagnosticLocation Pos(S, BRC.getSourceManager(), in VisitNode()
H A DObjCMissingSuperCallChecker.cpp196 PathDiagnosticLocation DLoc = in checkASTDecl()
197 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 DObjCAutoreleaseWriteChecker.cpp131 PathDiagnosticLocation Location = PathDiagnosticLocation::createBegin( in emitDiagnostics()
H A DObjCUnusedIVarsChecker.cpp163 PathDiagnosticLocation L = in checkObjCUnusedIvar()
164 PathDiagnosticLocation::create(I->first, BR.getSourceManager()); in checkObjCUnusedIvar()
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Core/
H A DBugReporter.cpp248 PathDiagnosticLocation &PrevLoc) const;
255 PathDiagnosticLocation &Start) const;
259 PathDiagnosticLocation &Start) const;
265 PathDiagnosticLocation
268 PathDiagnosticLocation
494 PathDiagnosticLocation *LastCallLocation = nullptr) { in adjustCallLocations()
511 PathDiagnosticLocation *ThisCallLocation; in adjustCallLocations()
577 PathDiagnosticLocation PathDiagnosticBuilder::ExecutionContinues( in ExecutionContinues()
580 return PathDiagnosticLocation(S, getSourceManager(), in ExecutionContinues()
583 return PathDiagnosticLocation::createDeclEnd(C.getCurrLocationContext(), in ExecutionContinues()
[all …]
H A DBugReporterVisitors.cpp332 PathDiagnosticLocation L = BR.getLocation(); in getDefaultEndPath()
705 PathDiagnosticLocation L = in maybeEmitNote()
706 PathDiagnosticLocation::create(N->getLocation(), SM); in maybeEmitNote()
1132 PathDiagnosticLocation L(Ret, BRC.getSourceManager(), CalleeSFC); in visitNodeInitial()
1614 PathDiagnosticLocation L; in VisitNode()
1616 L = PathDiagnosticLocation(InitE, BRC.getSourceManager(), in VisitNode()
1620 L = PathDiagnosticLocation::create(P, BRC.getSourceManager()); in VisitNode()
1690 PathDiagnosticLocation L = in VisitNode()
1691 PathDiagnosticLocation::create(P, BRC.getSourceManager()); in VisitNode()
1848 PathDiagnosticLocation::createBegin( in constructDebugPieceForTrackedCondition()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/StaticAnalyzer/Core/BugReporter/
H A DBugReporter.h175 virtual PathDiagnosticLocation getLocation() const = 0;
191 virtual PathDiagnosticLocation getUniqueingLocation() const = 0;
203 void addNote(StringRef Msg, const PathDiagnosticLocation &Pos,
254 PathDiagnosticLocation Location;
258 BasicBugReport(const BugType &bt, StringRef desc, PathDiagnosticLocation l) in BasicBugReport()
265 PathDiagnosticLocation getLocation() const override { in getLocation()
274 PathDiagnosticLocation getUniqueingLocation() const override { in getUniqueingLocation()
357 PathDiagnosticLocation UniqueingLocation;
390 PathDiagnosticLocation LocationToUnique, in PathSensitiveBugReport()
397 PathDiagnosticLocation LocationToUnique,
[all …]
/netbsd-src/external/apache2/llvm/dist/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.cpp423 PathDiagnosticLocation L = PathDiagnosticLocation::create(CallExitLoc, SM); in annotateConsumedSummaryMismatch()
444 PathDiagnosticLocation L = PathDiagnosticLocation(PVD, SM); in annotateStartParameter()
501 auto Pos = PathDiagnosticLocation::create(N->getLocation(), SM); in VisitNode()
543 PathDiagnosticLocation Pos(S, SM, N->getLocationContext()); in VisitNode()
595 PathDiagnosticLocation Pos(S, BRC.getSourceManager(), in VisitNode()
773 PathDiagnosticLocation L = cast<RefLeakReport>(BR).getEndOfPath(); in getEndPath()
870 PathDiagnosticLocation ParamLocation = in deriveParamLocation()
871 PathDiagnosticLocation::create(PDecl, SMgr); in deriveParamLocation()
910 PathDiagnosticLocation AllocLocation = PathDiagnosticLocation::createBegin( in deriveAllocLocation()
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/MPI-Checker/
H A DMPIBugReporter.cpp106 PathDiagnosticLocation L = in VisitNode()
107 PathDiagnosticLocation::create(P, BRC.getSourceManager()); in VisitNode()

123