Searched refs:getBufferOrNone (Results 1 – 19 of 19) sorted by relevance
/external/llvm-project/clang/lib/Analysis/ |
D | IssueHash.cpp | 140 StringRef Str = GetNthLineOfFile(SM.getBufferOrNone(L.getFileID(), L), in NormalizeLine() 150 SM.getBufferOrNone(SM.getFileID(StartOfLine), StartOfLine); in NormalizeLine()
|
/external/llvm-project/clang/lib/Basic/ |
D | SourceManager.cpp | 103 ContentCache::getBufferOrNone(DiagnosticsEngine &Diag, FileManager &FM, in getBufferOrNone() function in ContentCache 677 return IR.getBufferOrNone(Diag, getFileManager(), SourceLocation()); in getMemoryBufferForFileOrNone() 742 if (auto B = Entry->getFile().getContentCache().getBufferOrNone( in getBufferDataOrNone() 1163 Entry.getFile().getContentCache().getBufferOrNone(Diag, getFileManager(), in getCharacterData() 1175 llvm::Optional<llvm::MemoryBufferRef> MemBuf = getBufferOrNone(FID); in getColumnNumber() 1318 Content->getBufferOrNone(Diag, getFileManager(), SourceLocation()); in getLineNumber() 1449 auto B = getBufferOrNone(getFileID(Loc)); in getBufferName() 1484 else if (auto Buffer = C->getBufferOrNone(Diag, getFileManager())) in getPresumedLoc() 1668 Content->getBufferOrNone(Diag, getFileManager()); in translateLineCol()
|
/external/llvm-project/clang-tools-extra/clang-tidy/misc/ |
D | StaticAssertCheck.cpp | 144 SM.getBufferOrNone(SM.getFileID(AssertLoc)); in getLastParenLoc()
|
/external/llvm-project/clang/include/clang/Basic/ |
D | SourceManager.h | 208 getBufferOrNone(DiagnosticsEngine &Diag, FileManager &FM, 1007 getBufferOrNone(FileID FID, SourceLocation Loc = SourceLocation()) const { 1009 return Entry->getFile().getContentCache().getBufferOrNone( 1020 if (auto B = getBufferOrNone(FID, Loc))
|
/external/llvm-project/clang/lib/Frontend/Rewrite/ |
D | InclusionRewriter.cpp | 276 Optional<MemoryBufferRef> FromFile = *SM.getBufferOrNone(SM.getMainFileID()); in detectMainFileEOL() 378 auto B = SM.getBufferOrNone(FileId); in Process()
|
/external/llvm-project/clang/lib/StaticAnalyzer/Core/ |
D | SarifDiagnostics.cpp | 162 Optional<MemoryBufferRef> Buf = SM.getBufferOrNone(LocInfo.first); in adjustColumnPos()
|
D | BugReporter.cpp | 1573 Optional<MemoryBufferRef> Buffer = SM.getBufferOrNone(FID); in getLengthOnSingleLine()
|
/external/llvm-project/clang/lib/Lex/ |
D | PPLexerChange.cpp | 77 getSourceManager().getBufferOrNone(FID, Loc); in EnterSourceFile()
|
D | PPDirectives.cpp | 382 SourceMgr.getBufferOrNone(HashFileOffset.first); in getSkippedRangeForExcludedConditionalBlock()
|
D | ModuleMap.cpp | 3005 llvm::Optional<llvm::MemoryBufferRef> Buffer = SourceMgr.getBufferOrNone(ID); in parseModuleMapFile()
|
/external/llvm-project/clang/lib/Frontend/ |
D | FrontendActions.cpp | 820 SM.getBufferOrNone(SM.getMainFileID())) { in ExecuteAction()
|
D | FrontendAction.cpp | 236 auto MainFileBuf = SourceMgr.getBufferOrNone(MainFileID); in ReadOriginalFileName()
|
/external/llvm-project/clang-tools-extra/clangd/ |
D | SourceCode.cpp | 448 auto Buf = SM.getBufferOrNone(SM.getFileID(R.getBegin())); in toSourceCode()
|
/external/llvm-project/clang/lib/CodeGen/ |
D | CodeGenAction.cpp | 1094 Optional<MemoryBufferRef> MainFile = SM.getBufferOrNone(FID); in ExecuteAction()
|
D | CGDebugInfo.cpp | 377 Optional<llvm::MemoryBufferRef> MemBuffer = SM.getBufferOrNone(FID); in computeChecksum()
|
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
D | LocalizationChecker.cpp | 1145 Mgr.getSourceManager().getBufferOrNone(SLInfo.first, SL); in VisitObjCMessageExpr()
|
/external/llvm-project/clang/lib/Serialization/ |
D | ASTWriter.cpp | 2006 Content->getBufferOrNone(PP.getDiagnostics(), PP.getFileManager()); in WriteSourceManagerBlock() 2020 Content->getBufferOrNone(PP.getDiagnostics(), PP.getFileManager()); in WriteSourceManagerBlock()
|
/external/llvm-project/clang/tools/libclang/ |
D | CIndex.cpp | 4367 llvm::Optional<llvm::MemoryBufferRef> buf = SM.getBufferOrNone(fid); in clang_getFileContents()
|
/external/llvm-project/clang/lib/AST/ |
D | ASTImporter.cpp | 8735 Cache->getBufferOrNone(FromContext.getDiagnostics(), in Import()
|