| /llvm-project-15.0.7/clang/unittests/Tooling/ |
| H A D | DependencyScannerTest.cpp | 87 VFS->setCurrentWorkingDirectory(CWD); in TEST() 97 VFS->addFile(TestPath, 0, in TEST() 102 VFS); in TEST() 136 VFS->setCurrentWorkingDirectory(CWD); in TEST() 146 VFS->addFile(HeaderPath, 0, in TEST() 149 VFS->addFile(TestPath, 0, in TEST() 152 VFS->addFile(Test2Path, 0, in TEST() 178 VFS->setCurrentWorkingDirectory(CWD); in TEST() 188 VFS->addFile( in TEST() 220 VFS->setCurrentWorkingDirectory(CWD); in TEST() [all …]
|
| /llvm-project-15.0.7/clang/lib/Driver/ |
| H A D | Distro.cpp | 25 VFS.getBufferForFile("/etc/os-release"); in DetectOsRelease() 27 File = VFS.getBufferForFile("/usr/lib/os-release"); in DetectOsRelease() 53 VFS.getBufferForFile("/etc/lsb-release"); in DetectLsbRelease() 104 Version = DetectOsRelease(VFS); in DetectDistro() 109 Version = DetectLsbRelease(VFS); in DetectDistro() 115 VFS.getBufferForFile("/etc/redhat-release"); in DetectDistro() 134 File = VFS.getBufferForFile("/etc/debian_version"); in DetectDistro() 175 File = VFS.getBufferForFile("/etc/SuSE-release"); in DetectDistro() 200 if (VFS.exists("/etc/gentoo-release")) in DetectDistro() 232 return DetectDistro(VFS); in GetDistro() [all …]
|
| /llvm-project-15.0.7/clang/test/Modules/ |
| H A D | dependency-dump-dependent-module.m | 8 // RUN: FileCheck %s -check-prefix=VFS < %t/vfs/vfs.yaml 9 // VFS: 'name': "AlsoDependsOnModule.h" 10 // VFS: 'name': "SubFramework.h" 11 // VFS: 'name': "Treasure.h" 12 // VFS: 'name': "Module.h" 13 // VFS: 'name': "Sub.h" 14 // VFS: 'name': "Sub2.h"
|
| H A D | dependency-dump.m | 1 // Check that we can dump all of the headers a module depends on, and a VFS map 8 // RUN: FileCheck %s -check-prefix=VFS -input-file %t/vfs/vfs.yaml 9 // VFS: 'name': "SubFramework.h" 10 // VFS: 'name': "Treasure.h" 11 // VFS: 'name': "Module.h" 12 // VFS: 'name': "Sub.h" 13 // VFS: 'name': "Sub2.h"
|
| /llvm-project-15.0.7/llvm/lib/WindowsDriver/ |
| H A D | MSVCPaths.cpp | 62 getHighestNumericTupleInDirectory(llvm::vfs::FileSystem &VFS, in getHighestNumericTupleInDirectory() argument 71 auto Status = VFS.status(DirIt->path()); in getHighestNumericTupleInDirectory() 92 SDKVersion = getHighestNumericTupleInDirectory(VFS, IncludePath); in getWindows10SDKVersionFromPath() 124 } else if (getWindows10SDKVersionFromPath(VFS, Path, Version)) { in getWindowsSDKDirViaCommandLine() 393 return !VFS.exists(TestPath); in useUniversalCRT() 434 if (VFS.exists(TestPath)) { in getWindowsSDKDir() 472 return getWindows10SDKVersionFromPath(VFS, Path, UCRTVersion); in getUniversalCRTSdkDir() 475 bool findVCToolChainViaCommandLine(vfs::FileSystem &VFS, in findVCToolChainViaCommandLine() argument 540 if (!VFS.exists(ExeTestPath)) in findVCToolChainViaEnvironment() 547 if (!VFS.exists(ExeTestPath)) in findVCToolChainViaEnvironment() [all …]
|
| /llvm-project-15.0.7/clang/lib/Frontend/ |
| H A D | PrecompiledPreamble.cpp | 63 new llvm::vfs::OverlayFileSystem(VFS)); in createVFSOverlayForPreamblePCH() 404 IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS, in Build() argument 407 assert(VFS && "VFS is null"); in Build() 470 VFS = in Build() 627 if (!VFS.makeAbsolute(MappedPath)) in CanReuse() 646 if (!VFS.makeAbsolute(MappedPath)) in CanReuse() 691 if (auto Status = VFS.status(F.getKey())) { in CanReuse() 753 assert(VFS); in configurePreamble() 785 if (VFS == RealFS || VFS->exists(PCHPath)) in setupPreambleStorage() 797 VFS = createVFSOverlayForPreamblePCH(PCHPath, std::move(*Buf), VFS); in setupPreambleStorage() [all …]
|
| H A D | ASTUnit.cpp | 169 auto FileStatus = VFS->status(FilePath); in getBufferForFileHandlingRemapping() 176 auto MPathStatus = VFS->status(MPath); in getBufferForFileHandlingRemapping() 192 auto MPathStatus = VFS->status(MPath); in getBufferForFileHandlingRemapping() 1101 if (VFS && FileMgr) in Parse() 1133 if (VFS && FileMgr && &FileMgr->getVirtualFileSystem() == VFS) in Parse() 1311 *VFS)) { in getMainBufferWithPrecompiledPreamble() 1644 assert(VFS && "VFS is null"); in LoadFromCompilerInvocation() 1732 CIOpts.VFS = VFS; in LoadFromCommandLine() 1769 if (!VFS) in LoadFromCommandLine() 1771 VFS = createVFSFromCompilerInvocation(*CI, *Diags, VFS); in LoadFromCommandLine() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/WindowsDriver/ |
| H A D | MSVCPaths.h | 64 llvm::vfs::FileSystem &VFS); 67 bool getWindowsSDKDir(vfs::FileSystem &VFS, 75 bool getUniversalCRTSdkDir(vfs::FileSystem &VFS, 84 vfs::FileSystem &VFS, llvm::Optional<llvm::StringRef> VCToolsDir, 90 bool findVCToolChainViaEnvironment(vfs::FileSystem &VFS, std::string &Path, 97 bool findVCToolChainViaSetupConfig(vfs::FileSystem &VFS, std::string &Path,
|
| /llvm-project-15.0.7/clang/lib/Basic/ |
| H A D | ProfileList.cpp | 28 create(const std::vector<std::string> &Paths, llvm::vfs::FileSystem &VFS, 33 llvm::vfs::FileSystem &VFS); 47 llvm::vfs::FileSystem &VFS, in create() argument 50 if (PSCL->createInternal(Paths, VFS, Error)) in create() 57 llvm::vfs::FileSystem &VFS) { in createOrDie() argument 59 if (auto PSCL = create(Paths, VFS, Error)) in createOrDie()
|
| H A D | SanitizerSpecialCaseList.cpp | 19 llvm::vfs::FileSystem &VFS, in create() argument 23 if (SSCL->createInternal(Paths, VFS, Error)) { in create() 32 llvm::vfs::FileSystem &VFS) { in createOrDie() argument 34 if (auto SSCL = create(Paths, VFS, Error)) in createOrDie()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | Compiler.cpp | 101 CIOpts.VFS = Inputs.TFS->view(Inputs.CompileCommand.Directory); in buildCompilerInvocation() 123 llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS, in prepareCompilerInstance() argument 125 assert(VFS && "VFS is null"); in prepareCompilerInstance() 133 Preamble->OverridePreamble(*CI, VFS, Buffer.get()); in prepareCompilerInstance() 145 Clang->getInvocation(), Clang->getDiagnostics(), VFS)) in prepareCompilerInstance() 146 VFS = VFSWithRemapping; in prepareCompilerInstance() 147 Clang->createFileManager(VFS); in prepareCompilerInstance()
|
| H A D | HeaderSourceSwitch.cpp | 21 PathRef OriginalFile, llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS) { in getCorrespondingHeaderOrSource() argument 59 if (VFS->exists(NewPath)) in getCorrespondingHeaderOrSource() 64 if (VFS->exists(NewPath)) in getCorrespondingHeaderOrSource()
|
| /llvm-project-15.0.7/clang/include/clang/Frontend/ |
| H A D | PrecompiledPreamble.h | 84 IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS, 109 PreambleBounds Bounds, llvm::vfs::FileSystem &VFS) const; 120 IntrusiveRefCntPtr<llvm::vfs::FileSystem> &VFS, 127 IntrusiveRefCntPtr<llvm::vfs::FileSystem> &VFS, 169 IntrusiveRefCntPtr<llvm::vfs::FileSystem> &VFS, 178 IntrusiveRefCntPtr<llvm::vfs::FileSystem> &VFS);
|
| /llvm-project-15.0.7/llvm/tools/dsymutil/ |
| H A D | BinaryHolder.h | 41 BinaryHolder(IntrusiveRefCntPtr<vfs::FileSystem> VFS, bool Verbose = false) 42 : VFS(VFS), Verbose(Verbose) {} in VFS() argument 60 Error load(IntrusiveRefCntPtr<vfs::FileSystem> VFS, StringRef Filename, 112 Error load(IntrusiveRefCntPtr<vfs::FileSystem> VFS, StringRef Filename, 141 IntrusiveRefCntPtr<vfs::FileSystem> VFS; variable
|
| H A D | BinaryHolder.cpp | 44 Error BinaryHolder::ArchiveEntry::load(IntrusiveRefCntPtr<vfs::FileSystem> VFS, in load() argument 52 : VFS->getBufferForFile(ArchiveFilename, -1, false); in load() 89 Error BinaryHolder::ObjectEntry::load(IntrusiveRefCntPtr<vfs::FileSystem> VFS, in load() argument 95 : VFS->getBufferForFile(Filename, -1, false); in load() 100 llvm::ErrorOr<vfs::Status> Stat = VFS->status(Filename); in load() 246 auto Err = AE->load(VFS, Filename, Timestamp, Verbose); in getObjectEntry() 263 auto Err = OE->load(VFS, Filename, Timestamp, Verbose); in getObjectEntry()
|
| H A D | Reproducer.cpp | 26 Reproducer::Reproducer() : VFS(vfs::getRealFileSystem()) {} in Reproducer() 36 VFS = FileCollector::createCollectorVFS(vfs::getRealFileSystem(), FC); in ReproducerGenerate() 75 VFS = llvm::vfs::getVFSFromYAML(std::move(Buffer.get()), nullptr, Mapping); in ReproducerUse()
|
| H A D | dsymutil.h | 38 parseDebugMap(llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS, 44 bool dumpStab(llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS,
|
| H A D | Reproducer.h | 35 IntrusiveRefCntPtr<vfs::FileSystem> getVFS() const { return VFS; } in getVFS() 44 IntrusiveRefCntPtr<vfs::FileSystem> VFS;
|
| /llvm-project-15.0.7/clang/unittests/Frontend/ |
| H A D | PCHPreambleTest.cpp | 53 IntrusiveRefCntPtr<ReadCountingInMemoryFileSystem> VFS; member in __anon256563180111::PCHPreambleTest 63 VFS = new ReadCountingInMemoryFileSystem(); in ResetVFS() 70 VFS->setCurrentWorkingDirectory("//./"); in ResetVFS() 76 VFS->addFile(Filename, now, MemoryBuffer::getMemBufferCopy(Contents, Filename)); in AddFile() 100 FileManager *FileMgr = new FileManager(FSOpts, VFS); in ParseAST() 109 bool reparseFailed = AST->Reparse(PCHContainerOpts, GetRemappedFiles(), VFS); in ReparseAST() 114 return VFS->GetReadCount(Filename); in GetFileReadCount()
|
| H A D | CodeGenActionTest.cpp | 85 auto VFS = std::make_unique<llvm::vfs::InMemoryFileSystem>(); in TEST() local 86 VFS->setCurrentWorkingDirectory("/in-memory-fs-cwd"); in TEST() 90 VFS->addFile(TestPath, 0, llvm::MemoryBuffer::getMemBuffer("int x;\n")); in TEST() 104 Compiler.createFileManager(std::move(VFS)); in TEST()
|
| /llvm-project-15.0.7/clang/unittests/Lex/ |
| H A D | HeaderSearchTest.cpp | 30 : VFS(new llvm::vfs::InMemoryFileSystem), FileMgr(FileMgrOpts, VFS), in HeaderSearchTest() 41 VFS->addFile(Dir, 0, llvm::MemoryBuffer::getMemBuffer(""), /*User=*/None, in addSearchDir() 50 VFS->addFile(Dir, 0, llvm::MemoryBuffer::getMemBuffer(""), /*User=*/None, in addSystemFrameworkSearchDir() 61 VFS->addFile(Filename, 0, std::move(Buf), /*User=*/None, /*Group=*/None, in addHeaderMap() 74 IntrusiveRefCntPtr<llvm::vfs::InMemoryFileSystem> VFS; member in clang::__anonafc1b91d0111::HeaderSearchTest 192 VFS->addFile( in TEST_F() 259 VFS->addFile( in TEST_F()
|
| /llvm-project-15.0.7/llvm/unittests/Support/ |
| H A D | FileCollectorTest.cpp | 175 auto VFS = in TEST() local 177 VFS->status(a.path()); in TEST() 180 VFS->openFileForRead(b.path()); in TEST() 183 VFS->status(subdir.path()); in TEST() 188 auto It = VFS->dir_begin(subdir3.path(), EC); in TEST() 270 auto VFS = in TEST() local 273 VFS->getRealPath(symlink.path(), Output); in TEST()
|
| /llvm-project-15.0.7/clang/lib/Testing/ |
| H A D | TestAST.cpp | 105 auto VFS = llvm::makeIntrusiveRefCnt<llvm::vfs::InMemoryFileSystem>(); in TestAST() local 106 VFS->addFile(Filename, /*ModificationTime=*/0, in TestAST() 109 VFS->addFile( in TestAST() 112 Clang->createFileManager(VFS); in TestAST()
|
| /llvm-project-15.0.7/lldb/test/Shell/Reproducer/ |
| H A D | TestWorkingDir.test | 28 # RUN: cat %t.repro/files.yaml | FileCheck %s --check-prefix VFS 29 # VFS: probably_unique 30 # VFS-NOT: dont_include_me
|
| /llvm-project-15.0.7/clang/include/clang/Basic/ |
| H A D | SanitizerSpecialCaseList.h | 35 create(const std::vector<std::string> &Paths, llvm::vfs::FileSystem &VFS, 40 llvm::vfs::FileSystem &VFS);
|