Home
last modified time | relevance | path

Searched refs:getBufferOrNone (Results 1 – 19 of 19) sorted by relevance

/external/llvm-project/clang/lib/Analysis/
DIssueHash.cpp140 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/
DSourceManager.cpp103 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/
DStaticAssertCheck.cpp144 SM.getBufferOrNone(SM.getFileID(AssertLoc)); in getLastParenLoc()
/external/llvm-project/clang/include/clang/Basic/
DSourceManager.h208 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/
DInclusionRewriter.cpp276 Optional<MemoryBufferRef> FromFile = *SM.getBufferOrNone(SM.getMainFileID()); in detectMainFileEOL()
378 auto B = SM.getBufferOrNone(FileId); in Process()
/external/llvm-project/clang/lib/StaticAnalyzer/Core/
DSarifDiagnostics.cpp162 Optional<MemoryBufferRef> Buf = SM.getBufferOrNone(LocInfo.first); in adjustColumnPos()
DBugReporter.cpp1573 Optional<MemoryBufferRef> Buffer = SM.getBufferOrNone(FID); in getLengthOnSingleLine()
/external/llvm-project/clang/lib/Lex/
DPPLexerChange.cpp77 getSourceManager().getBufferOrNone(FID, Loc); in EnterSourceFile()
DPPDirectives.cpp382 SourceMgr.getBufferOrNone(HashFileOffset.first); in getSkippedRangeForExcludedConditionalBlock()
DModuleMap.cpp3005 llvm::Optional<llvm::MemoryBufferRef> Buffer = SourceMgr.getBufferOrNone(ID); in parseModuleMapFile()
/external/llvm-project/clang/lib/Frontend/
DFrontendActions.cpp820 SM.getBufferOrNone(SM.getMainFileID())) { in ExecuteAction()
DFrontendAction.cpp236 auto MainFileBuf = SourceMgr.getBufferOrNone(MainFileID); in ReadOriginalFileName()
/external/llvm-project/clang-tools-extra/clangd/
DSourceCode.cpp448 auto Buf = SM.getBufferOrNone(SM.getFileID(R.getBegin())); in toSourceCode()
/external/llvm-project/clang/lib/CodeGen/
DCodeGenAction.cpp1094 Optional<MemoryBufferRef> MainFile = SM.getBufferOrNone(FID); in ExecuteAction()
DCGDebugInfo.cpp377 Optional<llvm::MemoryBufferRef> MemBuffer = SM.getBufferOrNone(FID); in computeChecksum()
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/
DLocalizationChecker.cpp1145 Mgr.getSourceManager().getBufferOrNone(SLInfo.first, SL); in VisitObjCMessageExpr()
/external/llvm-project/clang/lib/Serialization/
DASTWriter.cpp2006 Content->getBufferOrNone(PP.getDiagnostics(), PP.getFileManager()); in WriteSourceManagerBlock()
2020 Content->getBufferOrNone(PP.getDiagnostics(), PP.getFileManager()); in WriteSourceManagerBlock()
/external/llvm-project/clang/tools/libclang/
DCIndex.cpp4367 llvm::Optional<llvm::MemoryBufferRef> buf = SM.getBufferOrNone(fid); in clang_getFileContents()
/external/llvm-project/clang/lib/AST/
DASTImporter.cpp8735 Cache->getBufferOrNone(FromContext.getDiagnostics(), in Import()