Home
last modified time | relevance | path

Searched refs:FileSystem (Results 1 – 25 of 328) sorted by relevance

12345678910>>...14

/llvm-project/lldb/source/Host/common/
H A DFileSystem.cpp45 FileSystem &FileSystem::Instance() { return *InstanceImpl(); } in Instance()
47 void FileSystem::Terminate() { in Terminate()
52 std::optional<FileSystem> &FileSystem::InstanceImpl() { in InstanceImpl()
53 static std::optional<FileSystem> g_fs; in InstanceImpl()
57 vfs::directory_iterator FileSystem::DirBegin(const FileSpec &file_spec, in DirBegin()
67 vfs::directory_iterator FileSystem::DirBegin(const Twine &dir, in DirBegin()
73 FileSystem::GetStatus(const FileSpec &file_spec) const { in GetStatus()
80 llvm::ErrorOr<vfs::Status> FileSystem::GetStatus(const Twine &path) const { in GetStatus()
85 FileSystem::GetModificationTime(const FileSpec &file_spec) const { in GetModificationTime()
91 sys::TimePoint<> FileSystem::GetModificationTime(const Twine &path) const { in GetModificationTime()
[all …]
H A DMonitoringProcessLauncher.cpp10 #include "lldb/Host/FileSystem.h"
16 #include "llvm/Support/FileSystem.h"
32 FileSystem &fs = FileSystem::Instance(); in LaunchProcess()
36 FileSystem::Instance().Resolve(exe_spec); in LaunchProcess()
39 FileSystem::Instance().ResolveExecutableLocation(exe_spec); in LaunchProcess()
/llvm-project/clang-tools-extra/unittests/clang-tidy/
H A DOptionsProviderTest.cpp20 llvm::IntrusiveRefCntPtr<llvm::vfs::InMemoryFileSystem> FileSystem( in TEST() local
34 FileSystem->addFile("ProjectRoot/.clang-tidy", 0, in TEST()
36 FileSystem->addFile("ProjectRoot/SubDir1/.clang-tidy", 0, in TEST()
38 FileSystem->addFile("ProjectRoot/SubDir1/File.cpp", 0, in TEST()
40 FileSystem->addFile("ProjectRoot/SubDir1/SubDir2/.clang-tidy", 0, in TEST()
42 FileSystem->addFile("ProjectRoot/SubDir1/SubDir2/File.cpp", 0, in TEST()
44 FileSystem->addFile("ProjectRoot/SubDir1/SubDir2/SubDir3/File.cpp", 0, in TEST()
47 FileOptionsProvider FileOpt({}, {}, {}, FileSystem); in TEST()
/llvm-project/lldb/include/lldb/Host/
H A DFileSystem.h30 class FileSystem {
35 FileSystem() in FileSystem() function
38 FileSystem(llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> fs) in FileSystem() function
41 FileSystem(std::unique_ptr<TildeExpressionResolver> tilde_resolver) in FileSystem() function
45 FileSystem(const FileSystem &fs) = delete;
46 FileSystem &operator=(const FileSystem &fs) = delete;
48 static FileSystem &Instance();
201 llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> GetVirtualFileSystem() { in GetVirtualFileSystem()
208 static std::optional<FileSystem> &InstanceImpl();
209 llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> m_fs;
/llvm-project/lldb/source/Plugins/Platform/MacOSX/
H A DPlatformDarwinKernel.cpp356 FileSystem::Instance().Resolve(possible_dir); in CollectKextAndKernelDirectories()
357 if (FileSystem::Instance().IsDirectory(possible_dir)) in CollectKextAndKernelDirectories()
362 FileSystem::Instance().Resolve(cwd); in CollectKextAndKernelDirectories()
373 FileSystem::Instance().Resolve(dir); in GetUserSpecifiedDirectoriesToSearch()
374 if (FileSystem::Instance().IsDirectory(dir)) { in GetUserSpecifiedDirectoriesToSearch()
390 FileSystem::Instance().Resolve(testdir); in AddRootSubdirsToSearchPaths()
391 if (FileSystem::Instance().IsDirectory(testdir)) in AddRootSubdirsToSearchPaths()
405 FileSystem::Instance().EnumerateDirectory( in AddSDKSubdirsToSearchPaths()
411 FileSystem::EnumerateDirectoryResult
424 return FileSystem::eEnumerateDirectoryResultNext; in FindKDKandSDKDirectoriesInDirectory()
[all …]
H A DPlatformDarwinDevice.cpp24 FileSystem::EnumerateDirectoryResult
29 return FileSystem::eEnumerateDirectoryResultNext; in GetContainedFilesIntoVectorOfStringsCallback()
39 FileSystem::Instance().Resolve(sdk_sysroot_fspec); in UpdateSDKDirectoryInfosIfNeeded()
63 FileSystem::Instance().EnumerateDirectory( in UpdateSDKDirectoryInfosIfNeeded()
75 if (FileSystem::Instance().Exists(sdk_symbols_symlink_fspec)) { in UpdateSDKDirectoryInfosIfNeeded()
91 FileSystem::Instance().Resolve(local_sdk_cache); in UpdateSDKDirectoryInfosIfNeeded()
92 if (FileSystem::Instance().Exists(local_sdk_cache)) { in UpdateSDKDirectoryInfosIfNeeded()
101 FileSystem::Instance().EnumerateDirectory( in UpdateSDKDirectoryInfosIfNeeded()
123 FileSystem::Instance().EnumerateDirectory( in UpdateSDKDirectoryInfosIfNeeded()
131 if (FileSystem in UpdateSDKDirectoryInfosIfNeeded()
[all...]
H A DPlatformRemoteDarwinDevice.cpp16 #include "lldb/Host/FileSystem.h"
86 FileSystem::Instance().Resolve(local_file); in GetFileInSDK()
87 if (FileSystem::Instance().Exists(local_file)) { in GetFileInSDK()
112 FileSystem::Instance().Resolve(local_file); in GetSymbolFile()
113 if (FileSystem::Instance().Exists(local_file)) { in GetSymbolFile()
126 FileSystem::Instance().Resolve(local_file); in GetSymbolFile()
127 if (FileSystem::Instance().Exists(local_file)) { in GetSymbolFile()
139 FileSystem::Instance().Resolve(local_file); in GetSymbolFile()
140 if (FileSystem::Instance().Exists(local_file)) { in GetSymbolFile()
147 if (FileSystem in GetSymbolFile()
[all...]
H A DPlatformDarwin.cpp47 #include "llvm/Support/FileSystem.h"
224 FileSystem::Instance().Exists(symfile_spec)) { in LocateExecutableScriptingResources()
268 FileSystem::Instance().Resolve(script_fspec); in LocateExecutableScriptingResources()
270 FileSystem::Instance().Resolve(orig_script_fspec); in LocateExecutableScriptingResources()
276 FileSystem::Instance().Exists(orig_script_fspec)) { in LocateExecutableScriptingResources()
280 if (FileSystem::Instance().Exists(script_fspec)) in LocateExecutableScriptingResources()
302 if (FileSystem::Instance().Exists(script_fspec)) { in LocateExecutableScriptingResources()
328 if (FileSystem::Instance().IsDirectory(sym_file)) {
392 if (FileSystem::Instance().Exists(new_file_spec)) { in GetSharedModule()
625 if (FileSystem in GetXcodeSelectPath()
[all...]
/llvm-project/lldb/source/Plugins/SymbolLocator/Default/
H A DSymbolLocatorDefault.cpp102 FileSystem::Instance().Exists(symbol_file_spec)) in LocateExecutableSymbolFile()
114 FileSystem::Instance().ResolveSymbolicLink(module_file_spec, in LocateExecutableSymbolFile()
120 FileSystem::Instance().Resolve(file_spec); in LocateExecutableSymbolFile()
129 FileSystem::Instance().Resolve(file_spec); in LocateExecutableSymbolFile()
138 FileSystem::Instance().Resolve(file_spec); in LocateExecutableSymbolFile()
145 FileSystem::Instance().Resolve(file_spec); in LocateExecutableSymbolFile()
161 FileSystem::Instance().Resolve(file_spec); in LocateExecutableSymbolFile()
185 FileSystem::Instance().Resolve(dirspec); in LocateExecutableSymbolFile()
186 if (!FileSystem::Instance().IsDirectory(dirspec)) in LocateExecutableSymbolFile()
211 FileSystem::Instance().Resolve(file_spec); in LocateExecutableSymbolFile()
[all …]
/llvm-project/llvm/include/llvm/WindowsDriver/
H A DMSVCPaths.h21 class FileSystem; variable
64 llvm::vfs::FileSystem &VFS);
67 bool getWindowsSDKDir(vfs::FileSystem &VFS,
75 bool getUniversalCRTSdkDir(vfs::FileSystem &VFS,
83 vfs::FileSystem &VFS, std::optional<llvm::StringRef> VCToolsDir,
89 bool findVCToolChainViaEnvironment(vfs::FileSystem &VFS, std::string &Path,
99 findVCToolChainViaSetupConfig(vfs::FileSystem &VFS,
/llvm-project/lldb/source/Host/posix/
H A DFileSystemPosix.cpp9 #include "lldb/Host/FileSystem.h"
21 #include "llvm/Support/FileSystem.h"
26 const char *FileSystem::DEV_NULL = "/dev/null";
28 Status FileSystem::Symlink(const FileSpec &src, const FileSpec &dst) {
35 Status FileSystem::Readlink(const FileSpec &src, FileSpec &dst) {
48 Status FileSystem::ResolveSymbolicLink(const FileSpec &src, FileSpec &dst) { in Readlink()
65 FILE *FileSystem::Fopen(const char *path, const char *mode) { in ResolveSymbolicLink()
69 int FileSystem::Open(const char *path, int flags, int mode) { in ResolveSymbolicLink()
/llvm-project/lldb/source/Plugins/SymbolLocator/DebugSymbols/
H A DSymbolLocatorDebugSymbols.cpp19 #include "lldb/Host/FileSystem.h"
34 #include "llvm/Support/FileSystem.h"
153 FileSystem::Instance().Resolve(dsym_filespec); in LocateExecutableObjectFile()
155 if (FileSystem::Instance().IsDirectory(dsym_filespec)) { in LocateExecutableObjectFile()
186 if (FileSystem::Instance().Exists(module_spec.GetFileSpec())) { in LocateExecutableObjectFile()
235 FileSystem::Instance().Resolve(exec_filespec); in LocateExecutableObjectFile()
236 if (FileSystem::Instance().Exists(exec_filespec)) { in LocateExecutableObjectFile()
255 FileSystem::Instance().Resolve(file_spec); in LocateExecutableObjectFile()
271 FileSystem::Instance().Resolve(bundle_exe_file_spec); in LocateExecutableObjectFile()
336 llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> vf in FindSymbolFileInBundle()
[all...]
/llvm-project/lldb/source/Host/windows/
H A DFileSystem.cpp1 //===-- FileSystem.cpp ----------------------------------------------------===//
16 #include "lldb/Host/FileSystem.h"
21 #include "llvm/Support/FileSystem.h"
25 const char *FileSystem::DEV_NULL = "nul";
27 const char *FileSystem::PATH_CONVERSION_ERROR =
30 Status FileSystem::Symlink(const FileSpec &src, const FileSpec &dst) { in Symlink()
51 Status FileSystem::Readlink(const FileSpec &src, FileSpec &dst) { in Readlink()
84 Status FileSystem::ResolveSymbolicLink(const FileSpec &src, FileSpec &dst) { in ResolveSymbolicLink()
89 FILE *FileSystem::Fopen(const char *path, const char *mode) { in Fopen()
101 int FileSystem in Open()
[all...]
/llvm-project/clang-tools-extra/clangd/
H A DFS.h44 void update(const llvm::vfs::FileSystem &FS, llvm::vfs::Status S,
57 IntrusiveRefCntPtr<llvm::vfs::FileSystem>
58 getProducingFS(IntrusiveRefCntPtr<llvm::vfs::FileSystem> FS);
63 IntrusiveRefCntPtr<llvm::vfs::FileSystem>
64 getConsumingFS(IntrusiveRefCntPtr<llvm::vfs::FileSystem> FS) const;
H A DFS.cpp26 void PreambleFileStatusCache::update(const llvm::vfs::FileSystem &FS, in update()
55 llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>
57 llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> FS) { in getProducingFS()
62 CollectFS(llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> FS, in getProducingFS()
95 llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>
97 llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> FS) const { in getConsumingFS()
100 CacheVFS(llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> FS, in getConsumingFS()
/llvm-project/llvm/include/llvm/Support/
H A DVirtualFileSystem.h10 /// Defines the virtual file system interface vfs::FileSystem.
26 #include "llvm/Support/FileSystem.h"
215 class FileSystem; variable
230 FileSystem *FS;
235 recursive_directory_iterator(FileSystem &FS, const Twine &Path,
265 class FileSystem : public llvm::ThreadSafeRefCountedBase<FileSystem>,
266 public RTTIExtends<FileSystem, RTTIRoot> {
269 virtual ~FileSystem();
345 using VisitCallbackTy = llvm::function_ref<void(FileSystem in printImpl()
[all...]
H A DFileCollector.h41 IntrusiveRefCntPtr<vfs::FileSystem> FS,
109 static IntrusiveRefCntPtr<vfs::FileSystem>
110 createCollectorVFS(IntrusiveRefCntPtr<vfs::FileSystem> BaseFS,
128 IntrusiveRefCntPtr<vfs::FileSystem> FS,
/llvm-project/clang/include/clang/Frontend/
H A DPrecompiledPreamble.h30 class FileSystem; variable
88 IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS,
114 PreambleBounds Bounds, llvm::vfs::FileSystem &VFS) const;
125 IntrusiveRefCntPtr<llvm::vfs::FileSystem> &VFS,
132 IntrusiveRefCntPtr<llvm::vfs::FileSystem> &VFS,
174 IntrusiveRefCntPtr<llvm::vfs::FileSystem> &VFS,
183 IntrusiveRefCntPtr<llvm::vfs::FileSystem> &VFS);
/llvm-project/lldb/source/Host/android/
H A DHostInfoAndroid.cpp44 FileSystem::Instance().Resolve(file_spec); in ResolveLibraryPath()
72 FileSystem::Instance().Resolve(file_candidate); in ResolveLibraryPath()
75 if (FileSystem::Instance().Exists(file_candidate)) in ResolveLibraryPath()
90 if (!success || !FileSystem::Instance().Exists(file_spec)) in ComputeTempFileBaseDirectory()
93 return FileSystem::Instance().Exists(file_spec); in ComputeTempFileBaseDirectory()
/llvm-project/clang-tools-extra/clangd/support/
H A DThreadsafeFS.h31 llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>
39 llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> view(PathRef CWD) const;
44 virtual llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> viewImpl() const = 0;
49 llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> viewImpl() const override;
/llvm-project/lldb/unittests/Host/
H A DFileSystemTest.cpp35 class DummyFileSystem : public vfs::FileSystem {
172 FileSystem fs; in TEST()
200 FileSystem fs(GetSimpleDummyFS()); in TEST()
207 FileSystem fs(GetSimpleDummyFS()); in TEST()
217 FileSystem fs(GetSimpleDummyFS()); in TEST()
225 FileSystem fs(GetSimpleDummyFS()); in TEST()
233 FileSystem fs(GetSimpleDummyFS()); in TEST()
252 FileSystem fs(GetSimpleDummyFS()); in TEST()
281 FileSystem::EnumerateDirectoryResult
286 return FileSystem::eEnumerateDirectoryResultNext; in VFSCallback()
[all …]
/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DClangHost.cpp17 #include "llvm/Support/FileSystem.h"
21 #include "lldb/Host/FileSystem.h"
32 if (FileSystem::Instance().IsDirectory(clang_path)) in VerifyClangPath()
80 FileSystem::Instance().Resolve(file_spec); in DefaultComputeClangResourceDirectory()
128 FileSystem::Instance().Resolve(file_spec); in ComputeClangResourceDirectory()
143 FileSystem::Instance().Resolve(file_spec); in ComputeClangResourceDirectory()
154 FileSystem::Instance().Resolve(file_spec); in ComputeClangResourceDirectory()
/llvm-project/lldb/source/API/
H A DSBFileSpec.cpp43 FileSystem::Instance().Resolve(*m_opaque_up); in SBFileSpec()
51 FileSystem::Instance().Resolve(*m_opaque_up); in SBFileSpec()
89 return FileSystem::Instance().Exists(*m_opaque_up); in Exists()
95 return FileSystem::Instance().ResolveExecutableLocation(*m_opaque_up); in ResolveExecutableLocation()
103 FileSystem::Instance().Resolve(result); in ResolvePath()
/llvm-project/llvm/unittests/Support/
H A DVirtualFileSystemTest.cpp14 #include "llvm/Support/FileSystem.h"
48 class DummyFileSystem : public vfs::FileSystem {
184 case vfs::FileSystem::PrintType::Summary: in printImpl()
187 case vfs::FileSystem::PrintType::Contents: in printImpl()
190 case vfs::FileSystem::PrintType::RecursiveContents: in printImpl()
456 IntrusiveRefCntPtr<vfs::FileSystem> FS = vfs::getRealFileSystem(); in TEST()
492 std::unique_ptr<vfs::FileSystem> BFS = vfs::createPhysicalFileSystem(), in TEST()
576 IntrusiveRefCntPtr<vfs::FileSystem> FS = vfs::getRealFileSystem(); in TEST()
605 IntrusiveRefCntPtr<vfs::FileSystem> FS = vfs::getRealFileSystem(); in TEST()
655 IntrusiveRefCntPtr<vfs::FileSystem> F in TEST()
[all...]
/llvm-project/lldb/unittests/Target/
H A DModuleCacheTest.cpp4 #include "llvm/Support/FileSystem.h"
13 #include "lldb/Host/FileSystem.h"
24 SubsystemRAII<FileSystem, HostInfo, ObjectFileELF, SymbolFileSymtab>
74 EXPECT_TRUE(FileSystem::Instance().Exists(uuid_view)) in VerifyDiskState()
76 EXPECT_EQ(module_size, FileSystem::Instance().GetByteSize(uuid_view)); in VerifyDiskState()
79 EXPECT_TRUE(FileSystem::Instance().Exists(sysroot_view)) in VerifyDiskState()
81 EXPECT_EQ(module_size, FileSystem::Instance().GetByteSize(sysroot_view)); in VerifyDiskState()

12345678910>>...14