Home
last modified time | relevance | path

Searched refs:SMgr (Results 1 – 18 of 18) sorted by relevance

/external/llvm-project/clang/lib/StaticAnalyzer/Core/
DHTMLDiagnostics.cpp104 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 …]
DSarifDiagnostics.cpp198 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()
DBugReporter.cpp644 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 …]
DStore.cpp551 bool StoreManager::FindUniqueBinding::HandleBinding(StoreManager& SMgr, in HandleBinding() argument
DBugReporterVisitors.cpp812 const SourceManager &SMgr = BRC.getSourceManager(); in VisitNode() local
814 if (isFunctionMacroExpansion(*Loc, SMgr)) { in VisitNode()
/external/clang/lib/StaticAnalyzer/Core/
DHTMLDiagnostics.cpp126 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 …]
DPathDiagnostic.cpp123 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 …]
DBugReporter.cpp426 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 …]
DStore.cpp494 bool StoreManager::FindUniqueBinding::HandleBinding(StoreManager& SMgr, in HandleBinding() argument
DBugReporterVisitors.cpp873 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/
DStore.h212 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/
DStore.h256 virtual bool HandleBinding(StoreManager& SMgr, Store store,
270 bool HandleBinding(StoreManager& SMgr, Store store, const MemRegion* R,
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/
DDeadStoresChecker.cpp175 SourceManager &SMgr = Ctx.getSourceManager(); in isSuppressed() local
180 FileID FID = SMgr.getFileID(Loc); in isSuppressed()
182 StringRef Data = SMgr.getBufferData(FID, &Invalid); in isSuppressed()
DStackAddrEscapeChecker.cpp313 bool HandleBinding(StoreManager &SMgr, Store S, const MemRegion *Region, in checkEndFunction() argument
/external/llvm-project/clang/lib/Analysis/
DPathDiagnostic.cpp156 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/
DRetainCountDiagnostics.cpp827 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/
DStackAddrEscapeChecker.cpp188 bool HandleBinding(StoreManager &SMgr, Store store, in checkEndFunction() argument
DRetainCountChecker.cpp2407 const SourceManager& SMgr = Ctx.getSourceManager(); in CFRefLeakReport() local
2429 PathDiagnosticLocation::createBegin(AllocStmt, SMgr, in CFRefLeakReport()