Home
last modified time | relevance | path

Searched refs:vfs (Results 1 – 25 of 273) sorted by relevance

1234567891011

/external/clang/unittests/Basic/
DVirtualFileSystemTest.cpp25 struct DummyFile : public vfs::File {
26 vfs::Status S;
27 explicit DummyFile(vfs::Status S) : S(S) {} in DummyFile()
28 llvm::ErrorOr<vfs::Status> status() override { return S; } in status()
37 class DummyFileSystem : public vfs::FileSystem {
40 std::map<std::string, vfs::Status> FilesAndDirs;
50 ErrorOr<vfs::Status> status(const Twine &Path) override { in status()
51 std::map<std::string, vfs::Status>::iterator I = in status()
57 ErrorOr<std::unique_ptr<vfs::File>>
61 return std::unique_ptr<vfs::File>(new DummyFile{*S}); in openFileForRead()
[all …]
/external/clang/test/Modules/
Dcrash-vfs-path-traversal.m15 // RUN: FileCheck --check-prefix=CHECKSRC %s -input-file %t/crash-vfs-*.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 | \
36 // CHECKSH: "crash-vfs-{{[^ ]*}}.m"
37 // CHECKSH: "-ivfsoverlay" "crash-vfs-{{[^ ]*}}.cache/vfs/vfs.yaml"
38 // CHECKSH: "-fmodules-cache-path=crash-vfs-{{[^ ]*}}.cache/modules"
57 // RUN: %t/crash-vfs-*.cache/vfs/vfs.yaml > %t/vfs.yaml
58 // RUN: cp %t/vfs.yaml %t/crash-vfs-*.cache/vfs/vfs.yaml
61 // RUN: -ivfsoverlay %t/crash-vfs-*.cache/vfs/vfs.yaml -fmodules \
Dcrash-vfs-run-reproducer.m11 // 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/modules"
52 // inside .cache/vfs, mapped by .cache/vfs/vfs.yaml.
55 // RUN: rm -rf crash-vfs-run-reproducer-*.cache/modules/*
56 // RUN: chmod 755 crash-vfs-*.sh
[all …]
Dcrash-vfs-relative-overlay.m14 // 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/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 \
Dcrash-vfs-path-emptydir-entries.m17 // 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/modules"
Dcrash-vfs-path-symlink-component.m18 // 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/modules"
64 // RUN: -ivfsoverlay %t/crash-vfs-*.cache/vfs/vfs.yaml -fmodules \
Dcrash-vfs-path-symlink-topheader.m19 // 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/modules"
/external/llvm-project/clang/test/Modules/
Dcrash-vfs-path-traversal.m16 // 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 \
Dcrash-vfs-relative-incdir.m11 // 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
Dcrash-vfs-run-reproducer.m11 // 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
Dcrash-vfs-relative-overlay.m14 // 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 \
Dcrash-vfs-path-symlink-component.m18 // 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 \
Dcrash-vfs-path-emptydir-entries.m17 // 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"
Dcrash-vfs-ivfsoverlay.m16 // 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"
Dcrash-vfs-path-symlink-topheader.m19 // 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"
/external/llvm-project/llvm/unittests/Support/
DVirtualFileSystemTest.cpp33 struct DummyFile : public vfs::File {
34 vfs::Status S;
35 explicit DummyFile(vfs::Status S) : S(S) {} in DummyFile()
36 llvm::ErrorOr<vfs::Status> status() override { return S; } in status()
45 class DummyFileSystem : public vfs::FileSystem {
49 std::map<std::string, vfs::Status> FilesAndDirs;
50 typedef std::map<std::string, vfs::Status>::const_iterator const_iterator;
60 ErrorOr<vfs::Status> status(const Twine &Path) override { in status()
66 ErrorOr<std::unique_ptr<vfs::File>>
70 return std::unique_ptr<vfs::File>(new DummyFile{*S}); in openFileForRead()
[all …]
/external/llvm-project/clang/include/clang/Basic/
DFileSystemStatCache.h51 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 …]
/external/llvm-project/clang-tools-extra/clangd/
DFS.cpp25 void PreambleFileStatusCache::update(const llvm::vfs::FileSystem &FS, in update()
26 llvm::vfs::Status S) { in update()
39 llvm::Optional<llvm::vfs::Status>
49 return llvm::vfs::Status::copyWithNewName(I->getValue(), File); in lookup()
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()
79 llvm::ErrorOr<llvm::vfs::Status> status(const llvm::Twine &Path) override { in getProducingFS()
[all …]
DFS.h44 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;
/external/llvm-project/lldb/unittests/Host/
DFileSystemTest.cpp23 struct DummyFile : public vfs::File {
24 vfs::Status S;
25 explicit DummyFile(vfs::Status S) : S(S) {} in DummyFile()
26 llvm::ErrorOr<vfs::Status> status() override { return S; } in status()
35 class DummyFileSystem : public vfs::FileSystem {
39 std::map<std::string, vfs::Status> FilesAndDirs;
49 ErrorOr<vfs::Status> status(const Twine &Path) override { in status()
50 std::map<std::string, vfs::Status>::iterator I = in status()
56 ErrorOr<std::unique_ptr<vfs::File>>
60 return std::unique_ptr<vfs::File>(new DummyFile{*S}); in openFileForRead()
[all …]
/external/llvm-project/clang/lib/Tooling/DependencyScanning/
DDependencyScanningFilesystem.cpp19 StringRef Filename, llvm::vfs::FileSystem &FS, bool Minimize) { in createFileEntry()
21 llvm::ErrorOr<std::unique_ptr<llvm::vfs::File>> MaybeFile = in createFileEntry()
25 llvm::ErrorOr<llvm::vfs::Status> Stat = (*MaybeFile)->status(); in createFileEntry()
29 llvm::vfs::File &F = **MaybeFile; in createFileEntry()
56 Result.MaybeStat = llvm::vfs::Status(Stat->getName(), Stat->getUniqueID(), in createFileEntry()
95 CachedFileSystemEntry::createDirectoryEntry(llvm::vfs::Status &&Stat) { in createDirectoryEntry()
172 llvm::vfs::FileSystem &FS = getUnderlyingFS(); in getOrCreateFileSystemEntry()
199 llvm::ErrorOr<llvm::vfs::Status>
214 class MinimizedVFSFile final : public llvm::vfs::File {
217 llvm::vfs::Status Stat) in MinimizedVFSFile()
[all …]
/external/llvm-project/clang/unittests/Driver/
DDistroTest.cpp29 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()
164 llvm::vfs::InMemoryFileSystem OpenSUSELeap421FileSystem; in TEST()
190 llvm::vfs::InMemoryFileSystem OpenSUSE132FileSystem; in TEST()
216 llvm::vfs::InMemoryFileSystem SLES10FileSystem; in TEST()
235 llvm::vfs::InMemoryFileSystem DebianJessieFileSystem; in TEST()
256 llvm::vfs::InMemoryFileSystem DebianStretchSidFileSystem; in TEST()
277 llvm::vfs::InMemoryFileSystem ExherboFileSystem; in TEST()
[all …]
/external/clang/include/clang/Basic/
DFileSystemStatCache.h25 namespace vfs {
72 std::unique_ptr<vfs::File> *F, FileSystemStatCache *Cache,
73 vfs::FileSystem &FS);
96 std::unique_ptr<vfs::File> *F,
97 vfs::FileSystem &FS) = 0;
100 std::unique_ptr<vfs::File> *F, vfs::FileSystem &FS) { in statChained()
125 std::unique_ptr<vfs::File> *F,
126 vfs::FileSystem &FS) override;
/external/llvm-project/clang/lib/Basic/
DFileSystemStatCache.cpp34 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()
/external/llvm-project/clang-tools-extra/clangd/support/
DThreadsafeFS.cpp29 class VolatileFileSystem : public llvm::vfs::ProxyFileSystem {
34 llvm::ErrorOr<std::unique_ptr<llvm::vfs::File>>
51 class VolatileFile : public llvm::vfs::File {
53 VolatileFile(std::unique_ptr<llvm::vfs::File> Wrapped) in VolatileFile()
65 llvm::ErrorOr<llvm::vfs::Status> status() override { in status()
77 llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>
85 llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>
90 return new VolatileFileSystem(llvm::vfs::createPhysicalFileSystem()); in viewImpl()

1234567891011