Home
last modified time | relevance | path

Searched refs:overrideFileContents (Results 1 – 10 of 10) sorted by relevance

/llvm-project-15.0.7/clang/unittests/Basic/
H A DSourceManagerTest.cpp74 SourceMgr.overrideFileContents(BuiltInFile, std::move(BuiltInBuf)); in TEST_F()
87 SourceMgr.overrideFileContents(CommandLineFile, std::move(CommandLineBuf)); in TEST_F()
100 SourceMgr.overrideFileContents(ScratchSpaceFile, std::move(ScratchSpaceBuf)); in TEST_F()
239 SourceMgr.overrideFileContents(SourceFile, std::move(Buf)); in TEST_F()
243 SourceMgr.overrideFileContents(HeaderFile, std::move(HeaderBuf)); in TEST_F()
359 SourceMgr.overrideFileContents(headerFile, std::move(HeaderBuf)); in TEST_F()
483 SourceMgr.overrideFileContents(headerFile, std::move(HeaderBuf)); in TEST_F()
568 SourceMgr.overrideFileContents(SourceFile, std::move(Buf)); in TEST_F()
574 SourceMgr.overrideFileContents(SecondFile, std::move(Buf2)); in TEST_F()
H A DSarifTest.cpp66 SourceMgr.overrideFileContents(SourceFile, std::move(SourceBuf)); in registerSource()
/llvm-project-15.0.7/clang-tools-extra/unittests/include/common/
H A DVirtualFileHelper.h65 SM.overrideFileContents(Entry, std::move(Buf)); in mapVirtualFiles()
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DSourceManager.h952 void overrideFileContents(const FileEntry *SourceFile, in overrideFileContents() function
954 overrideFileContents(SourceFile, llvm::MemoryBuffer::getMemBuffer(Buffer)); in overrideFileContents()
964 void overrideFileContents(const FileEntry *SourceFile,
966 void overrideFileContents(FileEntryRef SourceFile, in overrideFileContents() function
968 overrideFileContents(&SourceFile.getFileEntry(), std::move(Buffer)); in overrideFileContents()
977 void overrideFileContents(const FileEntry *SourceFile,
/llvm-project-15.0.7/clang/unittests/Frontend/
H A DTextDiagnosticTest.cpp58 SrcMgr.overrideFileContents(fe, std::move(file_contents)); in TEST()
/llvm-project-15.0.7/clang/lib/Frontend/
H A DCompilerInstance.cpp412 SourceMgr.overrideFileContents(FromFile, RB.second->getMemBufferRef()); in InitializeFileRemapping()
414 SourceMgr.overrideFileContents( in InitializeFileRemapping()
438 SourceMgr.overrideFileContents(FromFile, *ToFile); in InitializeFileRemapping()
1335 Instance.getSourceManager().overrideFileContents( in compileModule()
2161 Other.getSourceManager().overrideFileContents( in createModuleFromSource()
/llvm-project-15.0.7/clang/lib/Basic/
H A DSourceManager.cpp687 void SourceManager::overrideFileContents( in overrideFileContents() function in SourceManager
697 void SourceManager::overrideFileContents(const FileEntry *SourceFile, in overrideFileContents() function in SourceManager
/llvm-project-15.0.7/clang/lib/Lex/
H A DPreprocessor.cpp452 SourceMgr.overrideFileContents(File, std::move(NewBuffer)); in SetCodeCompletionPoint()
/llvm-project-15.0.7/clang/unittests/AST/
H A DASTImporterTest.cpp6659 FromSM.overrideFileContents(&FE, std::move(FileContents)); in TEST_P()
/llvm-project-15.0.7/clang/lib/Serialization/
H A DASTReader.cpp1594 SourceMgr.overrideFileContents(*File, std::move(Buffer)); in ReadSLocEntry()