| /llvm-project-15.0.7/clang/test/Modules/ |
| H A D | crash-vfs-path-traversal.m | 16 // RUN: FileCheck --check-prefix=CHECKSRC %s -input-file %t/crash-vfs-*.m 17 // RUN: FileCheck --check-prefix=CHECKSH %s -input-file %t/crash-vfs-*.sh 19 // RUN: %t/crash-vfs-*.cache/vfs/vfs.yaml 20 // RUN: find %t/crash-vfs-*.cache/vfs | \ 37 // CHECKSH: "crash-vfs-{{[^ ]*}}.m" 38 // CHECKSH: "-ivfsoverlay" "crash-vfs-{{[^ ]*}}.cache/vfs/vfs.yaml" 39 // CHECKSH: "-fmodules-cache-path=crash-vfs-{{[^ ]*}}.cache/repro-modules" 58 // RUN: %t/crash-vfs-*.cache/vfs/vfs.yaml > %t/vfs.yaml 59 // RUN: cp %t/vfs.yaml %t/crash-vfs-*.cache/vfs/vfs.yaml 62 // RUN: -ivfsoverlay %t/crash-vfs-*.cache/vfs/vfs.yaml -fmodules \
|
| H A D | crash-vfs-relative-incdir.m | 11 // RUN: FileCheck --check-prefix=CHECKSRC %s -input-file %t/crash-vfs-*.m 12 // RUN: FileCheck --check-prefix=CHECKSH %s -input-file %t/crash-vfs-*.sh 14 // RUN: %t/crash-vfs-*.cache/vfs/vfs.yaml 15 // RUN: find %t/crash-vfs-*.cache/vfs | \ 32 // CHECKSH: "crash-vfs-{{[^ ]*}}.m" 33 // CHECKSH: "-ivfsoverlay" "crash-vfs-{{[^ ]*}}.cache/vfs/vfs.yaml" 34 // CHECKSH: "-fmodules-cache-path=crash-vfs-{{[^ ]*}}.cache/repro-modules" 52 // inside .cache/vfs, mapped by .cache/vfs/vfs.yaml. 55 // RUN: chmod 755 crash-vfs-*.sh 56 // RUN: ./crash-vfs-*.sh
|
| H A D | crash-vfs-run-reproducer.m | 11 // RUN: FileCheck --check-prefix=CHECKSRC %s -input-file %t/crash-vfs-*.m 12 // RUN: FileCheck --check-prefix=CHECKSH %s -input-file %t/crash-vfs-*.sh 14 // RUN: %t/crash-vfs-*.cache/vfs/vfs.yaml 15 // RUN: find %t/crash-vfs-*.cache/vfs | \ 32 // CHECKSH: "crash-vfs-{{[^ ]*}}.m" 33 // CHECKSH: "-ivfsoverlay" "crash-vfs-{{[^ ]*}}.cache/vfs/vfs.yaml" 34 // CHECKSH: "-fmodules-cache-path=crash-vfs-{{[^ ]*}}.cache/repro-modules" 52 // inside .cache/vfs, mapped by .cache/vfs/vfs.yaml. 55 // RUN: chmod 755 crash-vfs-*.sh 56 // RUN: ./crash-vfs-*.sh
|
| H A D | crash-vfs-relative-overlay.m | 14 // RUN: FileCheck --check-prefix=CHECKSRC %s -input-file %t/crash-vfs-*.m 15 // RUN: FileCheck --check-prefix=CHECKSH %s -input-file %t/crash-vfs-*.sh 17 // RUN: %t/crash-vfs-*.cache/vfs/vfs.yaml 18 // RUN: find %t/crash-vfs-*.cache/vfs | \ 35 // CHECKSH: "crash-vfs-{{[^ ]*}}.m" 36 // CHECKSH: "-ivfsoverlay" "crash-vfs-{{[^ ]*}}.cache/vfs/vfs.yaml" 37 // CHECKSH: "-fmodules-cache-path=crash-vfs-{{[^ ]*}}.cache/repro-modules" 53 // the overlay dir is prefixed to access headers in .cache/vfs directory. 57 // RUN: -ivfsoverlay %t/crash-vfs-*.cache/vfs/vfs.yaml -fmodules \
|
| H A D | crash-vfs-path-symlink-component.m | 18 // RUN: FileCheck --check-prefix=CHECKSRC %s -input-file %t/crash-vfs-*.m 19 // RUN: FileCheck --check-prefix=CHECKSH %s -input-file %t/crash-vfs-*.sh 21 // RUN: %t/crash-vfs-*.cache/vfs/vfs.yaml 22 // RUN: find %t/crash-vfs-*.cache/vfs | \ 39 // CHECKSH: "crash-vfs-{{[^ ]*}}.m" 40 // CHECKSH: "-ivfsoverlay" "crash-vfs-{{[^ ]*}}.cache/vfs/vfs.yaml" 41 // CHECKSH: "-fmodules-cache-path=crash-vfs-{{[^ ]*}}.cache/repro-modules" 64 // RUN: -ivfsoverlay %t/crash-vfs-*.cache/vfs/vfs.yaml -fmodules \
|
| H A D | crash-vfs-path-emptydir-entries.m | 17 // RUN: FileCheck --check-prefix=CHECKSRC %s -input-file %t/crash-vfs-*.m 18 // RUN: FileCheck --check-prefix=CHECKSH %s -input-file %t/crash-vfs-*.sh 20 // RUN: %t/crash-vfs-*.cache/vfs/vfs.yaml 21 // RUN: find %t/crash-vfs-*.cache/vfs | \ 38 // CHECKSH: "crash-vfs-{{[^ ]*}}.m" 39 // CHECKSH: "-ivfsoverlay" "crash-vfs-{{[^ ]*}}.cache/vfs/vfs.yaml" 40 // CHECKSH: "-fmodules-cache-path=crash-vfs-{{[^ ]*}}.cache/repro-modules"
|
| H A D | crash-vfs-ivfsoverlay.m | 16 // RUN: FileCheck --check-prefix=CHECKSH %s -input-file %t/crash-vfs-*.sh 18 // RUN: %t/crash-vfs-*.cache/vfs/vfs.yaml 19 // RUN: find %t/crash-vfs-*.cache/vfs | \ 32 // CHECKSH: "crash-vfs-{{[^ ]*}}.m" 33 // CHECKSH: "-ivfsoverlay" "crash-vfs-{{[^ ]*}}.cache/vfs/vfs.yaml" 34 // CHECKSH: "-fmodules-cache-path=crash-vfs-{{[^ ]*}}.cache/repro-modules"
|
| H A D | crash-vfs-path-symlink-topheader.m | 19 // RUN: FileCheck --check-prefix=CHECKSRC %s -input-file %t/crash-vfs-*.m 20 // RUN: FileCheck --check-prefix=CHECKSH %s -input-file %t/crash-vfs-*.sh 22 // RUN: %t/crash-vfs-*.cache/vfs/vfs.yaml 23 // RUN: find %t/crash-vfs-*.cache/vfs | \ 40 // CHECKSH: "crash-vfs-{{[^ ]*}}.m" 41 // CHECKSH: "-ivfsoverlay" "crash-vfs-{{[^ ]*}}.cache/vfs/vfs.yaml" 42 // CHECKSH: "-fmodules-cache-path=crash-vfs-{{[^ ]*}}.cache/repro-modules"
|
| H A D | crash-vfs-include-pch.m | 17 // RUN: FileCheck --check-prefix=CHECKSH %s -input-file %t/crash-vfs-*.sh 19 // RUN: %t/crash-vfs-*.cache/vfs/vfs.yaml 29 // CHECKSH: "crash-vfs-{{[^ ]*}}.m" 30 // CHECKSH: "-ivfsoverlay" "crash-vfs-{{[^ ]*}}.cache/vfs/vfs.yaml" 31 // CHECKSH: "-fmodules-cache-path=crash-vfs-{{[^ ]*}}.cache/repro-modules"
|
| H A D | crash-vfs-headermaps.m | 12 // RUN: FileCheck --check-prefix=CHECKSH %s -input-file %t/crash-vfs-*.sh 14 // RUN: %t/crash-vfs-*.cache/vfs/vfs.yaml 28 // CHECKSH: "crash-vfs-{{[^ ]*}}.m" 29 // CHECKSH: "-ivfsoverlay" "crash-vfs-{{[^ ]*}}.cache/vfs/vfs.yaml" 30 // CHECKSH: "-fmodules-cache-path=crash-vfs-{{[^ ]*}}.cache/repro-modules"
|
| H A D | crash-vfs-umbrella-frameworks.m | 18 // RUN: %t/crash-vfs-*.cache/vfs/vfs.yaml 19 // RUN: find %t/crash-vfs-*.cache/vfs | \ 46 // can be used, testing that vfs::recursive_directory_iterator is used correctly 53 // RUN: rm -rf crash-vfs-umbrella-*.cache/modules/* 54 // RUN: chmod 755 crash-vfs-*.sh 55 // RUN: ./crash-vfs-*.sh
|
| /llvm-project-15.0.7/llvm/unittests/Support/ |
| H A D | VirtualFileSystemTest.cpp | 33 struct DummyFile : public vfs::File { 34 vfs::Status S; 254 IntrusiveRefCntPtr<vfs::OverlayFileSystem> O(new vfs::OverlayFileSystem(D)); in TEST() 438 IntrusiveRefCntPtr<vfs::FileSystem> FS = vfs::getRealFileSystem(); in TEST() 474 std::unique_ptr<vfs::FileSystem> BFS = vfs::createPhysicalFileSystem(), in TEST() 531 IntrusiveRefCntPtr<vfs::FileSystem> FS = vfs::getRealFileSystem(); in TEST() 540 for (vfs::directory_iterator in TEST() 560 IntrusiveRefCntPtr<vfs::FileSystem> FS = vfs::getRealFileSystem(); in TEST() 610 IntrusiveRefCntPtr<vfs::FileSystem> FS = vfs::getRealFileSystem(); in TEST() 684 IntrusiveRefCntPtr<vfs::FileSystem> FS = vfs::getRealFileSystem(); in TEST() [all …]
|
| /llvm-project-15.0.7/clang/include/clang/Basic/ |
| H A D | FileSystemStatCache.h | 51 get(StringRef Path, llvm::vfs::Status &Status, bool isFile, 52 std::unique_ptr<llvm::vfs::File> *F, 53 FileSystemStatCache *Cache, llvm::vfs::FileSystem &FS); 59 virtual std::error_code getStat(StringRef Path, llvm::vfs::Status &Status, 61 std::unique_ptr<llvm::vfs::File> *F, 62 llvm::vfs::FileSystem &FS) = 0; 71 llvm::StringMap<llvm::vfs::Status, llvm::BumpPtrAllocator> StatCalls; 74 llvm::StringMap<llvm::vfs::Status, 80 std::error_code getStat(StringRef Path, llvm::vfs::Status &Status, 82 std::unique_ptr<llvm::vfs::File> *F, [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | FS.cpp | 26 llvm::vfs::Status S) { in update() 39 llvm::Optional<llvm::vfs::Status> 53 llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> 55 llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> FS) { in getProducingFS() 58 class CollectFS : public llvm::vfs::ProxyFileSystem { in getProducingFS() 60 CollectFS(llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> FS, in getProducingFS() 64 llvm::ErrorOr<std::unique_ptr<llvm::vfs::File>> in getProducingFS() 93 llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> 95 llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> FS) const { in getConsumingFS() 96 class CacheVFS : public llvm::vfs::ProxyFileSystem { in getConsumingFS() [all …]
|
| H A D | FS.h | 44 void update(const llvm::vfs::FileSystem &FS, llvm::vfs::Status S); 47 llvm::Optional<llvm::vfs::Status> lookup(llvm::StringRef Path) const; 56 IntrusiveRefCntPtr<llvm::vfs::FileSystem> 57 getProducingFS(IntrusiveRefCntPtr<llvm::vfs::FileSystem> FS); 62 IntrusiveRefCntPtr<llvm::vfs::FileSystem> 63 getConsumingFS(IntrusiveRefCntPtr<llvm::vfs::FileSystem> FS) const; 67 llvm::StringMap<llvm::vfs::Status> StatCache;
|
| /llvm-project-15.0.7/lldb/unittests/Host/ |
| H A D | FileSystemTest.cpp | 23 struct DummyFile : public vfs::File { 24 vfs::Status S; 25 explicit DummyFile(vfs::Status S) : S(S) {} in DummyFile() 35 class DummyFileSystem : public vfs::FileSystem { 39 std::map<std::string, vfs::Status> FilesAndDirs; 56 ErrorOr<std::unique_ptr<vfs::File>> 120 CurrentEntry = vfs::directory_entry(); in increment() 127 return vfs::directory_iterator( in dir_begin() 136 vfs::Status S(Path, UniqueID(FSID, FileID++), in addRegularFile() 143 vfs::Status S(Path, UniqueID(FSID, FileID++), in addDirectory() [all …]
|
| /llvm-project-15.0.7/clang/unittests/Driver/ |
| H A D | DistroTest.cpp | 29 llvm::vfs::InMemoryFileSystem UbuntuTrustyFileSystem; in TEST() 60 llvm::vfs::InMemoryFileSystem UbuntuYakketyFileSystem; in TEST() 92 llvm::vfs::InMemoryFileSystem Fedora25FileSystem; in TEST() 125 llvm::vfs::InMemoryFileSystem CentOS7FileSystem; in TEST() 216 llvm::vfs::InMemoryFileSystem SLES10FileSystem; in TEST() 277 llvm::vfs::InMemoryFileSystem ExherboFileSystem; in TEST() 297 llvm::vfs::InMemoryFileSystem ArchLinuxFileSystem; in TEST() 319 llvm::vfs::InMemoryFileSystem GentooFileSystem; in TEST() 354 llvm::ErrorOr<std::unique_ptr<llvm::vfs::File>> in TEST() 368 llvm::vfs::getRealFileSystem(); in TEST() [all …]
|
| /llvm-project-15.0.7/clang/include/clang/Tooling/DependencyScanning/ |
| H A D | DependencyScanningFilesystem.h | 63 CachedFileSystemEntry(llvm::ErrorOr<llvm::vfs::Status> Stat) in CachedFileSystemEntry() 69 CachedFileSystemEntry(llvm::ErrorOr<llvm::vfs::Status> Stat, in CachedFileSystemEntry() 108 llvm::vfs::Status getStatus() const { in getStatus() 135 llvm::ErrorOr<llvm::vfs::Status> MaybeStat; 247 llvm::vfs::Status getStatus() const { in getStatus() 248 llvm::vfs::Status Stat = Entry.getStatus(); in getStatus() 285 IntrusiveRefCntPtr<llvm::vfs::FileSystem> FS) in DependencyScanningWorkerFilesystem() 289 llvm::ErrorOr<std::unique_ptr<llvm::vfs::File>> 318 llvm::vfs::Status Status; 321 TentativeEntry(llvm::vfs::Status Status, [all …]
|
| /llvm-project-15.0.7/clang/lib/Basic/ |
| H A D | FileSystemStatCache.cpp | 34 FileSystemStatCache::get(StringRef Path, llvm::vfs::Status &Status, in get() 35 bool isFile, std::unique_ptr<llvm::vfs::File> *F, in get() 37 llvm::vfs::FileSystem &FS) { in get() 47 llvm::ErrorOr<llvm::vfs::Status> StatusOrErr = FS.status(Path); in get() 70 llvm::ErrorOr<llvm::vfs::Status> StatusOrErr = (*OwnedFile)->status(); in get() 102 MemorizeStatCalls::getStat(StringRef Path, llvm::vfs::Status &Status, in getStat() 104 std::unique_ptr<llvm::vfs::File> *F, in getStat() 105 llvm::vfs::FileSystem &FS) { in getStat()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/support/ |
| H A D | ThreadsafeFS.cpp | 27 class VolatileFileSystem : public llvm::vfs::ProxyFileSystem { 32 llvm::ErrorOr<std::unique_ptr<llvm::vfs::File>> 49 class VolatileFile : public llvm::vfs::File { 51 VolatileFile(std::unique_ptr<llvm::vfs::File> Wrapped) in VolatileFile() 63 llvm::ErrorOr<llvm::vfs::Status> status() override { in status() 75 llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> 83 llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> 88 return new VolatileFileSystem(llvm::vfs::createPhysicalFileSystem()); in viewImpl()
|
| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | FileCollector.h | 39 virtual llvm::vfs::directory_iterator 41 IntrusiveRefCntPtr<vfs::FileSystem> FS, 109 static IntrusiveRefCntPtr<vfs::FileSystem> 110 createCollectorVFS(IntrusiveRefCntPtr<vfs::FileSystem> BaseFS, 126 llvm::vfs::directory_iterator 128 IntrusiveRefCntPtr<vfs::FileSystem> FS, 138 vfs::YAMLVFSWriter VFSWriter;
|
| /llvm-project-15.0.7/clang/unittests/Tooling/ |
| H A D | ToolingTest.cpp | 178 new llvm::vfs::OverlayFileSystem(llvm::vfs::getRealFileSystem())); in TEST() 180 new llvm::vfs::InMemoryFileSystem); in TEST() 204 new llvm::vfs::OverlayFileSystem(llvm::vfs::getRealFileSystem())); in TEST() 206 new llvm::vfs::InMemoryFileSystem); in TEST() 230 new llvm::vfs::OverlayFileSystem(llvm::vfs::getRealFileSystem())); in TEST() 232 new llvm::vfs::InMemoryFileSystem); in TEST() 259 new llvm::vfs::OverlayFileSystem(llvm::vfs::getRealFileSystem())); in TEST() 261 new llvm::vfs::InMemoryFileSystem); in TEST() 305 new llvm::vfs::OverlayFileSystem(llvm::vfs::getRealFileSystem())); in TEST() 307 new llvm::vfs::InMemoryFileSystem); in TEST() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/WindowsDriver/ |
| H A D | MSVCPaths.h | 20 namespace vfs { 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/Tooling/DependencyScanning/ |
| H A D | DependencyScanningFilesystem.cpp | 127 llvm::ErrorOr<llvm::vfs::Status> Stat) { in getOrEmplaceEntryForFilename() 138 llvm::sys::fs::UniqueID UID, llvm::vfs::Status Stat, in getOrEmplaceEntryForUID() 255 llvm::ErrorOr<llvm::vfs::Status> 270 class DepScanFile final : public llvm::vfs::File { 273 llvm::vfs::Status Stat) in DepScanFile() 278 llvm::ErrorOr<llvm::vfs::Status> status() override { return Stat; } in status() 290 llvm::vfs::Status Stat; 295 llvm::ErrorOr<std::unique_ptr<llvm::vfs::File>> 308 return llvm::ErrorOr<std::unique_ptr<llvm::vfs::File>>( in create() 309 std::unique_ptr<llvm::vfs::File>(std::move(Result))); in create() [all …]
|
| /llvm-project-15.0.7/lldb/include/lldb/Host/ |
| H A D | FileSystem.h | 33 FileSystem() : m_fs(llvm::vfs::getRealFileSystem()) {} in FileSystem() 34 FileSystem(llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> fs) in FileSystem() 43 static void Initialize(llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> fs); 64 llvm::vfs::directory_iterator DirBegin(const FileSpec &file_spec, 66 llvm::vfs::directory_iterator DirBegin(const llvm::Twine &dir, 72 llvm::ErrorOr<llvm::vfs::Status> GetStatus(const FileSpec &file_spec) const; 73 llvm::ErrorOr<llvm::vfs::Status> GetStatus(const llvm::Twine &path) const; 191 llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> GetVirtualFileSystem() { in GetVirtualFileSystem() 199 llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> m_fs;
|