Home
last modified time | relevance | path

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

1234

/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-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-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-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"
Dcrash-vfs-umbrella-frameworks.m18 // 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
Ddependency-dump.m5 …plicit-module-maps -fmodules-cache-path=%t/cache -module-dependency-dir %t/vfs -F %S/Inputs -I %S/…
8 // RUN: FileCheck %s -check-prefix=VFS -input-file %t/vfs/vfs.yaml
Ddependency-dump-dependent-module.m5 …plicit-module-maps -fmodules-cache-path=%t/cache -module-dependency-dir %t/vfs -F %S/Inputs -I %S/…
8 // RUN: FileCheck %s -check-prefix=VFS < %t/vfs/vfs.yaml
/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;
DFileManager.h66 mutable std::unique_ptr<vfs::File> File;
118 IntrusiveRefCntPtr<vfs::FileSystem> FS;
169 std::unique_ptr<vfs::File> *F);
177 IntrusiveRefCntPtr<vfs::FileSystem> FS = nullptr);
226 IntrusiveRefCntPtr<vfs::FileSystem> getVirtualFileSystem() const { in getVirtualFileSystem()
252 vfs::Status &Result);
/external/clang/lib/Basic/
DFileSystemStatCache.cpp22 static void copyStatusToFileData(const vfs::Status &Status, in copyStatusToFileData()
44 std::unique_ptr<vfs::File> *F, in get()
45 FileSystemStatCache *Cache, vfs::FileSystem &FS) { in get()
55 llvm::ErrorOr<vfs::Status> Status = FS.status(Path); in get()
79 llvm::ErrorOr<vfs::Status> Status = (*OwnedFile)->status(); in get()
111 std::unique_ptr<vfs::File> *F, vfs::FileSystem &FS) { in getStat()
DFileManager.cpp49 IntrusiveRefCntPtr<vfs::FileSystem> FS) in FileManager()
58 this->FS = vfs::getRealFileSystem(); in FileManager()
252 std::unique_ptr<vfs::File> F; in getFile()
464 std::unique_ptr<vfs::File> *F) { in getStatValue()
478 vfs::Status &Result) { in getNoncachedStatValue()
482 llvm::ErrorOr<vfs::Status> S = FS->status(FilePath.c_str()); in getNoncachedStatValue()
/external/webrtc/webrtc/base/
Dunixfilesystem.cc520 struct statfs vfs; in GetDiskFreeSpace()
521 memset(&vfs, 0, sizeof(vfs)); in GetDiskFreeSpace()
522 if (0 != statfs(existing_path.pathname().c_str(), &vfs)) in GetDiskFreeSpace()
525 struct statvfs vfs; in GetDiskFreeSpace()
526 memset(&vfs, 0, sizeof(vfs)); in GetDiskFreeSpace()
527 if (0 != statvfs(existing_path.pathname().c_str(), &vfs)) in GetDiskFreeSpace()
531 *freebytes = static_cast<int64_t>(vfs.f_bsize) * vfs.f_bavail; in GetDiskFreeSpace()
533 *freebytes = static_cast<int64_t>(vfs.f_frsize) * vfs.f_bavail; in GetDiskFreeSpace()
/external/clang/lib/Tooling/
DTooling.cpp52 IntrusiveRefCntPtr<vfs::FileSystem> VFS) { in newDriver()
133 llvm::IntrusiveRefCntPtr<vfs::OverlayFileSystem> OverlayFileSystem( in runToolOnCodeWithArgs()
134 new vfs::OverlayFileSystem(vfs::getRealFileSystem())); in runToolOnCodeWithArgs()
135 llvm::IntrusiveRefCntPtr<vfs::InMemoryFileSystem> InMemoryFileSystem( in runToolOnCodeWithArgs()
136 new vfs::InMemoryFileSystem); in runToolOnCodeWithArgs()
321 OverlayFileSystem(new vfs::OverlayFileSystem(vfs::getRealFileSystem())), in ClangTool()
322 InMemoryFileSystem(new vfs::InMemoryFileSystem), in ClangTool()
508 llvm::IntrusiveRefCntPtr<vfs::OverlayFileSystem> OverlayFileSystem( in buildASTFromCodeWithArgs()
509 new vfs::OverlayFileSystem(vfs::getRealFileSystem())); in buildASTFromCodeWithArgs()
510 llvm::IntrusiveRefCntPtr<vfs::InMemoryFileSystem> InMemoryFileSystem( in buildASTFromCodeWithArgs()
[all …]
/external/clang/unittests/Tooling/
DRewriterTestContext.h42 InMemoryFileSystem(new vfs::InMemoryFileSystem), in RewriterTestContext()
44 new vfs::OverlayFileSystem(vfs::getRealFileSystem())), in RewriterTestContext()
117 IntrusiveRefCntPtr<vfs::InMemoryFileSystem> InMemoryFileSystem;
118 IntrusiveRefCntPtr<vfs::OverlayFileSystem> OverlayFileSystem;
DToolingTest.cpp152 llvm::IntrusiveRefCntPtr<vfs::OverlayFileSystem> OverlayFileSystem( in TEST()
153 new vfs::OverlayFileSystem(vfs::getRealFileSystem())); in TEST()
154 llvm::IntrusiveRefCntPtr<vfs::InMemoryFileSystem> InMemoryFileSystem( in TEST()
155 new vfs::InMemoryFileSystem); in TEST()
178 llvm::IntrusiveRefCntPtr<vfs::OverlayFileSystem> OverlayFileSystem( in TEST()
179 new vfs::OverlayFileSystem(vfs::getRealFileSystem())); in TEST()
180 llvm::IntrusiveRefCntPtr<vfs::InMemoryFileSystem> InMemoryFileSystem( in TEST()
181 new vfs::InMemoryFileSystem); in TEST()
/external/clang/unittests/Driver/
DToolChainTest.cpp34 IntrusiveRefCntPtr<vfs::InMemoryFileSystem> InMemoryFileSystem( in TEST()
35 new vfs::InMemoryFileSystem); in TEST()
87 IntrusiveRefCntPtr<vfs::InMemoryFileSystem> InMemoryFileSystem( in TEST()
88 new vfs::InMemoryFileSystem); in TEST()
/external/javasqlite/src/main/java/SQLite/
DJDBCDriver.java12 public static String vfs = null; field in JDBCDriver
73 vfs = tvfs;
107 args[4] = vfs; in connect()
136 pp = new DriverPropertyInfo("vfs", vfs); in getPropertyInfo()
DDatabase.java56 public void open(String filename, int mode, String vfs) in open() argument
66 _open4(filename, mode, vfs, false); in open()
86 public void open(String filename, int mode, String vfs, boolean ver2) in open() argument
96 _open4(filename, mode, vfs, ver2); in open()
118 private native void _open4(String filename, int mode, String vfs, in _open4() argument
/external/clang/tools/clang-format/
DClangFormat.cpp115 vfs::InMemoryFileSystem *MemFS) { in createInMemoryFile()
132 IntrusiveRefCntPtr<vfs::InMemoryFileSystem> InMemoryFileSystem( in fillRanges()
133 new vfs::InMemoryFileSystem); in fillRanges()
284 IntrusiveRefCntPtr<vfs::InMemoryFileSystem> InMemoryFileSystem( in format()
285 new vfs::InMemoryFileSystem); in format()
/external/clang/include/clang/Driver/
DDriver.h41 namespace vfs {
71 IntrusiveRefCntPtr<vfs::FileSystem> VFS;
231 IntrusiveRefCntPtr<vfs::FileSystem> VFS = nullptr);
244 vfs::FileSystem &getVFS() const { return *VFS; } in getVFS()
/external/clang/lib/Index/
DSimpleFormatContext.h41 InMemoryFileSystem(new vfs::InMemoryFileSystem), in SimpleFormatContext()
66 IntrusiveRefCntPtr<vfs::InMemoryFileSystem> InMemoryFileSystem;
/external/javasqlite/src/main/java/SQLite/JDBC2z/
DJDBCConnection.java27 protected String vfs; field in JDBCConnection
114 SQLite.Constants.SQLITE_OPEN_CREATE), vfs); in open()
145 String vfs) in JDBCConnection() argument
156 this.vfs = vfs; in JDBCConnection()

1234