/external/llvm-project/clang/lib/StaticAnalyzer/Core/ |
D | HTMLDiagnostics.cpp | 104 const SourceManager& SMgr, const PathPieces& path, 109 const SourceManager& SMgr, const PathPieces& path, 211 const SourceManager &SMgr = path.front()->getLocation().getManager(); in ReportDiag() local 214 Rewriter R(const_cast<SourceManager&>(SMgr), PP.getLangOpts()); in ReportDiag() 232 SMgr.getExpansionLoc(path.back()->getLocation().asLocation()), in ReportDiag() 233 SMgr); in ReportDiag() 234 FullSourceLoc FunL(SMgr.getExpansionLoc(Body->getBeginLoc()), SMgr); in ReportDiag() 239 std::string report = GenerateHTML(D, R, SMgr, path, declName.c_str()); in ReportDiag() 268 const FileEntry* Entry = SMgr.getFileEntryForID(ReportFile); in ReportDiag() 300 const SourceManager& SMgr, const PathPieces& path, const char *declName) { in GenerateHTML() argument [all …]
|
D | SarifDiagnostics.cpp | 198 const SourceManager &SMgr, in createPhysicalLocation() argument 202 {"region", createTextRegion(LO, R, SMgr)}}}; in createPhysicalLocation() 257 const SourceManager &SMgr = Pieces.front()->getLocation().getManager(); in createThreadFlow() local 265 SMgr, Artifacts), in createThreadFlow() 284 const SourceManager &SMgr = Path.front()->getLocation().getManager(); in createResult() local 296 SMgr, Artifacts))}}, in createResult()
|
D | BugReporter.cpp | 644 const SourceManager &SMgr = LC->getDecl()->getASTContext().getSourceManager(); in getEnclosingStmtLocation() local 651 return PathDiagnosticLocation(allowNestedContexts ? B : S, SMgr, LC); in getEnclosingStmtLocation() 656 return PathDiagnosticLocation(S, SMgr, LC); in getEnclosingStmtLocation() 661 return PathDiagnosticLocation(Parent, SMgr, LC); in getEnclosingStmtLocation() 663 return PathDiagnosticLocation(S, SMgr, LC); in getEnclosingStmtLocation() 670 return PathDiagnosticLocation(Parent, SMgr, LC); in getEnclosingStmtLocation() 672 return PathDiagnosticLocation(S, SMgr, LC); in getEnclosingStmtLocation() 675 return PathDiagnosticLocation(S, SMgr, LC); in getEnclosingStmtLocation() 678 return PathDiagnosticLocation(S, SMgr, LC); in getEnclosingStmtLocation() 681 return PathDiagnosticLocation(S, SMgr, LC); in getEnclosingStmtLocation() [all …]
|
D | Store.cpp | 551 bool StoreManager::FindUniqueBinding::HandleBinding(StoreManager& SMgr, in HandleBinding() argument
|
D | BugReporterVisitors.cpp | 812 const SourceManager &SMgr = BRC.getSourceManager(); in VisitNode() local 814 if (isFunctionMacroExpansion(*Loc, SMgr)) { in VisitNode()
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | HTMLDiagnostics.cpp | 126 const SourceManager &SMgr = path.front()->getLocation().getManager(); in ReportDiag() local 133 Rewriter R(const_cast<SourceManager&>(SMgr), PP.getLangOpts()); in ReportDiag() 147 SMgr.getExpansionLoc(path.back()->getLocation().asLocation()), in ReportDiag() 148 SMgr); in ReportDiag() 149 FullSourceLoc FunL(SMgr.getExpansionLoc(Body->getLocStart()), SMgr); in ReportDiag() 178 const FileEntry* Entry = SMgr.getFileEntryForID(FID); in ReportDiag() 224 R.InsertTextBefore(SMgr.getLocForStartOfFile(FID), os.str()); in ReportDiag() 241 FullSourceLoc L(SMgr.getExpansionLoc(UPDLoc.isValid() in ReportDiag() 244 SMgr); in ReportDiag() 258 << GetIssueHash(SMgr, L, D.getCheckName(), D.getBugType(), DeclWithIssue, in ReportDiag() [all …]
|
D | PathDiagnostic.cpp | 123 const SourceManager &SMgr) { in getFirstStackedCallToHeaderFile() argument 130 assert(SMgr.isInMainFile(CallLoc) && in getFirstStackedCallToHeaderFile() 134 if (!SMgr.isInMainFile(CP->callEnterWithin.asLocation())) in getFirstStackedCallToHeaderFile() 145 return getFirstStackedCallToHeaderFile(CPInner, SMgr); in getFirstStackedCallToHeaderFile() 158 const SourceManager &SMgr = LastP->getLocation().getManager(); in resetDiagnosticLocationToMainFile() local 163 CP = getFirstStackedCallToHeaderFile(CP, SMgr); in resetDiagnosticLocationToMainFile() 211 const SourceManager &SMgr = D->path.front()->getLocation().getManager(); in HandlePathDiagnostic() local 224 FID = SMgr.getFileID(L); in HandlePathDiagnostic() 225 } else if (SMgr.getFileID(L) != FID) in HandlePathDiagnostic() 232 SourceLocation L = SMgr.getExpansionLoc(I->getBegin()); in HandlePathDiagnostic() [all …]
|
D | BugReporter.cpp | 426 getEnclosingStmtLocation(const Stmt *S, SourceManager &SMgr, const ParentMap &P, in getEnclosingStmtLocation() argument 436 return PathDiagnosticLocation(allowNestedContexts ? B : S, SMgr, LC); in getEnclosingStmtLocation() 441 return PathDiagnosticLocation(S, SMgr, LC); in getEnclosingStmtLocation() 446 return PathDiagnosticLocation(Parent, SMgr, LC); in getEnclosingStmtLocation() 448 return PathDiagnosticLocation(S, SMgr, LC); in getEnclosingStmtLocation() 455 return PathDiagnosticLocation(Parent, SMgr, LC); in getEnclosingStmtLocation() 457 return PathDiagnosticLocation(S, SMgr, LC); in getEnclosingStmtLocation() 460 return PathDiagnosticLocation(S, SMgr, LC); in getEnclosingStmtLocation() 463 return PathDiagnosticLocation(S, SMgr, LC); in getEnclosingStmtLocation() 466 return PathDiagnosticLocation(S, SMgr, LC); in getEnclosingStmtLocation() [all …]
|
D | Store.cpp | 494 bool StoreManager::FindUniqueBinding::HandleBinding(StoreManager& SMgr, in HandleBinding() argument
|
D | BugReporterVisitors.cpp | 873 const SourceManager &SMgr = BRC.getSourceManager(); in VisitNode() local 874 std::pair<FileID, unsigned> TLInfo = SMgr.getDecomposedLoc(TerminatorLoc); in VisitNode() 875 SrcMgr::SLocEntry SE = SMgr.getSLocEntry(TLInfo.first); in VisitNode()
|
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | Store.h | 212 virtual bool HandleBinding(StoreManager& SMgr, Store store, 226 bool HandleBinding(StoreManager& SMgr, Store store, const MemRegion* R,
|
/external/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | Store.h | 256 virtual bool HandleBinding(StoreManager& SMgr, Store store, 270 bool HandleBinding(StoreManager& SMgr, Store store, const MemRegion* R,
|
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
D | DeadStoresChecker.cpp | 175 SourceManager &SMgr = Ctx.getSourceManager(); in isSuppressed() local 180 FileID FID = SMgr.getFileID(Loc); in isSuppressed() 182 StringRef Data = SMgr.getBufferData(FID, &Invalid); in isSuppressed()
|
D | StackAddrEscapeChecker.cpp | 313 bool HandleBinding(StoreManager &SMgr, Store S, const MemRegion *Region, in checkEndFunction() argument
|
/external/llvm-project/clang/lib/Analysis/ |
D | PathDiagnostic.cpp | 156 const SourceManager &SMgr = D->path.front()->getLocation().getManager(); in HandlePathDiagnostic() local 174 FID = SMgr.getFileID(L); in HandlePathDiagnostic() 175 } else if (SMgr.getFileID(L) != FID) { in HandlePathDiagnostic() 183 SourceLocation L = SMgr.getExpansionLoc(I.getBegin()); in HandlePathDiagnostic() 184 if (!L.isFileID() || SMgr.getFileID(L) != FID) { in HandlePathDiagnostic() 188 L = SMgr.getExpansionLoc(I.getEnd()); in HandlePathDiagnostic() 189 if (!L.isFileID() || SMgr.getFileID(L) != FID) { in HandlePathDiagnostic()
|
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/ |
D | RetainCountDiagnostics.cpp | 827 const SourceManager& SMgr = Ctx.getSourceManager(); in deriveParamLocation() local 837 PathDiagnosticLocation::create(PDecl, SMgr); in deriveParamLocation() 857 const SourceManager& SMgr = Ctx.getSourceManager(); in deriveAllocLocation() local 878 PathDiagnosticLocation::createBegin(AllocStmt, SMgr, in deriveAllocLocation()
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | StackAddrEscapeChecker.cpp | 188 bool HandleBinding(StoreManager &SMgr, Store store, in checkEndFunction() argument
|
D | RetainCountChecker.cpp | 2407 const SourceManager& SMgr = Ctx.getSourceManager(); in CFRefLeakReport() local 2429 PathDiagnosticLocation::createBegin(AllocStmt, SMgr, in CFRefLeakReport()
|