Home
last modified time | relevance | path

Searched refs:FileSpec (Results 1 – 25 of 396) sorted by relevance

12345678910>>...16

/llvm-project/lldb/unittests/Utility/
H A DFileSpecTest.cpp15 static FileSpec PosixSpec(llvm::StringRef path) { in PosixSpec()
16 return FileSpec(path, FileSpec::Style::posix); in PosixSpec()
19 static FileSpec WindowsSpec(llvm::StringRef path) { in WindowsSpec()
20 return FileSpec(path, FileSpec::Style::windows); in WindowsSpec()
24 FileSpec fs_posix("/foo/bar", FileSpec::Style::posix); in TEST()
29 FileSpec fs_windows("F:\\bar", FileSpec::Style::windows); in TEST()
35 FileSpec fs_posix_root("/", FileSpec::Style::posix); in TEST()
40 FileSpec fs_net_drive("//net", FileSpec::Style::posix); in TEST()
45 FileSpec fs_net_root("//net/", FileSpec::Style::posix); in TEST()
50 FileSpec fs_windows_drive("F:", FileSpec::Style::windows); in TEST()
[all …]
/llvm-project/lldb/source/Utility/
H A DFileSpec.cpp39 static constexpr FileSpec::Style GetNativeStyle() { in GetNativeStyle()
41 return FileSpec::Style::windows; in GetNativeStyle()
43 return FileSpec::Style::posix; in GetNativeStyle()
47 bool PathStyleIsPosix(FileSpec::Style style) { in PathStyleIsPosix()
51 const char *GetPathSeparators(FileSpec::Style style) { in GetPathSeparators()
55 char GetPreferredPathSeparator(FileSpec::Style style) { in GetPreferredPathSeparator()
59 void Denormalize(llvm::SmallVectorImpl<char> &path, FileSpec::Style style) { in Denormalize()
68 FileSpec::FileSpec() : m_style(GetNativeStyle()) {} in FileSpec() function in FileSpec
71 FileSpec::FileSpec(llvm::StringRef path, Style style) : m_style(style) { in FileSpec() function in FileSpec
75 FileSpec::FileSpec(llvm::StringRef path, const llvm::Triple &triple) in FileSpec() function in FileSpec
[all …]
H A DFileSpecList.cpp28 void FileSpecList::Append(const FileSpec &file_spec) {
36 bool FileSpecList::AppendIfUnique(const FileSpec &file_spec) { in AppendIfUnique()
46 bool SupportFileList::AppendIfUnique(const FileSpec &file_spec) { in AppendIfUnique()
76 static size_t FindFileIndex(size_t start_idx, const FileSpec &file_spec, in FindFileIndex()
78 std::function<const FileSpec &(size_t)> get_ith) { in FindFileIndex()
84 const FileSpec &ith = get_ith(idx); in FindFileIndex()
91 if (FileSpec::Equal(ith, file_spec, full)) in FindFileIndex()
100 size_t FileSpecList::FindFileIndex(size_t start_idx, const FileSpec &file_spec, in FindFileIndex()
104 [&](size_t idx) -> const FileSpec & { return m_files[idx]; }); in FindFileIndex()
108 const FileSpec in FindFileIndex()
[all...]
/llvm-project/lldb/unittests/Target/
H A DLocateModuleCallbackTest.cpp71 bool GetModuleSpec(const FileSpec &module_file_spec, const ArchSpec &arch, in GetModuleSpec()
78 FileSpec GetTestDir() { in GetTestDir()
80 FileSpec test_dir = HostInfo::GetProcessTempDir(); in GetTestDir()
88 FileSpec GetRemotePath() { in GetRemotePath()
89 FileSpec fs("/", FileSpec::Style::posix); in GetRemotePath()
95 FileSpec GetUuidView(FileSpec spec) { in GetUuidView()
103 void BuildEmptyCacheDir(const FileSpec &test_dir) { in BuildEmptyCacheDir()
104 FileSpec cache_di in BuildEmptyCacheDir()
[all...]
H A DModuleCacheTest.cpp31 FileSpec s_cache_dir;
34 void TryGetAndPut(const FileSpec &cache_dir, const char *hostname,
46 static FileSpec GetDummyRemotePath() { in GetDummyRemotePath()
47 FileSpec fs("/", FileSpec::Style::posix); in GetDummyRemotePath()
53 static FileSpec GetUuidView(FileSpec spec) { in GetUuidView()
60 static FileSpec GetSysrootView(FileSpec spec, const char *hostname) { in GetSysrootView()
72 static void VerifyDiskState(const FileSpec
[all...]
/llvm-project/lldb/include/lldb/Host/
H A DHostInfoBase.h28 class FileSpec; variable
63 using SharedLibraryDirectoryHelper = void(FileSpec &this_file);
91 static FileSpec GetShlibDir();
95 static FileSpec GetSupportExeDir();
99 static FileSpec GetHeaderDir();
103 static FileSpec GetSystemPluginDir();
107 static FileSpec GetUserPluginDir();
112 static FileSpec GetProcessTempDir();
117 static FileSpec GetGlobalTempDir();
124 static bool ComputePathRelativeToLibrary(FileSpec &file_spec,
[all …]
H A DFileSystem.h56 Status Symlink(const FileSpec &src, const FileSpec &dst);
57 Status Readlink(const FileSpec &src, FileSpec &dst);
59 Status ResolveSymbolicLink(const FileSpec &src, FileSpec &dst);
68 Open(const FileSpec &file_spec, File::OpenOptions options,
74 llvm::vfs::directory_iterator DirBegin(const FileSpec &file_spec,
82 llvm::ErrorOr<llvm::vfs::Status> GetStatus(const FileSpec &file_spec) const;
88 llvm::sys::TimePoint<> GetModificationTime(const FileSpec &file_spec) const;
94 uint64_t GetByteSize(const FileSpec &file_spec) const;
103 uint32_t GetPermissions(const FileSpec &file_spec) const;
105 uint32_t GetPermissions(const FileSpec &file_spec, std::error_code &ec) const;
[all …]
H A DProcessLaunchInfo.h34 ProcessLaunchInfo(const FileSpec &stdin_file_spec,
35 const FileSpec &stdout_file_spec,
36 const FileSpec &stderr_file_spec,
37 const FileSpec &working_dir, uint32_t launch_flags);
47 bool AppendOpenFileAction(int fd, const FileSpec &file_spec, bool read,
67 const FileSpec &GetWorkingDirectory() const;
69 void SetWorkingDirectory(const FileSpec &working_dir);
75 const FileSpec &GetShell() const;
77 void SetShell(const FileSpec &shell);
134 FileSpec m_working_dir;
[all …]
/llvm-project/lldb/include/lldb/Utility/
H A DFileSpec.h56 class FileSpec {
60 FileSpec();
75 explicit FileSpec(llvm::StringRef path, Style style = Style::native);
77 explicit FileSpec(llvm::StringRef path, const llvm::Triple &triple);
79 bool DirectoryEquals(const FileSpec &other) const;
81 bool FileEquals(const FileSpec &other) const;
94 bool operator==(const FileSpec &rhs) const;
107 bool operator!=(const FileSpec &rhs) const;
120 bool operator<(const FileSpec &rhs) const;
183 static int Compare(const FileSpec &lhs, const FileSpec &rhs, bool full);
[all …]
H A DFileSpecList.h12 #include "lldb/Utility/FileSpec.h"
34 void Append(const FileSpec &file) { in Append()
41 bool AppendIfUnique(const FileSpec &file);
43 const FileSpec &GetFileSpecAtIndex(size_t idx) const;
45 size_t FindFileIndex(size_t idx, const FileSpec &file, bool full) const;
75 FindCompatibleIndex(size_t idx, const FileSpec &file, in EmplaceBack()
84 collection m_files; ///< A collection of FileSpec objects.
90 /// A class that contains a mutable list of FileSpec objects.
93 typedef std::vector<FileSpec> collection;
108 FileSpecList(std::vector<FileSpec>
[all...]
/llvm-project/lldb/unittests/Core/
H A DFileSpecListTest.cpp
H A DSourceLocationSpecTest.cpp19 SourceLocationSpec invalid(FileSpec(), 0); in TEST()
22 SourceLocationSpec invalid_filespec(FileSpec(), 4); in TEST()
25 SourceLocationSpec invalid_line(FileSpec("/foo/bar"), 0); in TEST()
28 SourceLocationSpec valid_fs_line_no_column(FileSpec("/foo/bar"), 4); in TEST()
31 SourceLocationSpec invalid_fs_column(FileSpec(), 4, 0); in TEST()
34 SourceLocationSpec invalid_line_column(FileSpec("/foo/bar"), 0, 19); in TEST()
37 SourceLocationSpec valid_fs_line_zero_column(FileSpec("/foo/bar"), 4, 0); in TEST()
40 SourceLocationSpec valid_fs_line_column(FileSpec("/foo/bar"), 4, 19); in TEST()
45 FileSpec fs("/foo/bar", FileSpec::Style::posix); in TEST()
71 FileSpec fs, uint32_t line, in Create()
[all …]
/llvm-project/lldb/source/Host/common/
H A DHostInfoBase.cpp55 FileSpec m_lldb_so_dir;
57 FileSpec m_lldb_support_exe_dir;
59 FileSpec m_lldb_headers_dir;
61 FileSpec m_lldb_clang_resource_dir;
63 FileSpec m_lldb_system_plugin_dir;
65 FileSpec m_lldb_user_plugin_dir;
67 FileSpec m_lldb_process_tmp_dir;
69 FileSpec m_lldb_global_tmp_dir;
122 FileSpec HostInfoBase::GetShlibDir() { in GetShlibDir()
125 g_fields->m_lldb_so_dir = FileSpec(); in GetShlibDir()
[all...]
/llvm-project/lldb/unittests/Platform/Android/
H A DPlatformAndroidTest.cpp28 Status(const FileSpec &remote_file, const FileSpec &local_file));
29 MOCK_METHOD4(Stat, Status(const FileSpec &remote_file, uint32_t &mode,
41 const FileSpec &output_file_spec));
68 FileSpec("/system/app/Test/Test.apk!/lib/arm64-v8a/libtest.so"), 4096, in TEST_F()
69 3600, FileSpec()) in TEST_F()
75 EXPECT_CALL(*sync_service, Stat(FileSpec("/system/lib64/libc.so"), _, _, _)) in TEST_F()
78 EXPECT_CALL(*sync_service, PullFile(FileSpec("/system/lib64/libc.so"), _)) in TEST_F()
92 DownloadModuleSlice(FileSpec("/system/lib64/libc.so"), 0, 0, FileSpec()) in TEST_F()
[all...]
/llvm-project/lldb/include/lldb/Target/
H A DRemoteAwarePlatform.h28 bool GetModuleSpec(const FileSpec &module_file_spec, const ArchSpec &arch,
31 lldb::user_id_t OpenFile(const FileSpec &file_spec, File::OpenOptions flags,
42 lldb::user_id_t GetFileSize(const FileSpec &file_spec) override;
44 Status CreateSymlink(const FileSpec &src, const FileSpec &dst) override;
46 bool GetFileExists(const FileSpec &file_spec) override;
48 Status Unlink(const FileSpec &file_spec) override;
50 FileSpec GetRemoteWorkingDirectory() override;
52 bool SetRemoteWorkingDirectory(const FileSpec &working_dir) override;
54 Status MakeDirectory(const FileSpec &file_spec, uint32_t mode) override;
56 Status GetFilePermissions(const FileSpec &file_spec,
[all …]
H A DPlatform.h26 #include "lldb/Utility/FileSpec.h"
56 FileSpec GetModuleCacheDirectory() const;
57 bool SetModuleCacheDirectory(const FileSpec &dir_spec);
60 void SetDefaultModuleCacheDirectory(const FileSpec &dir_spec);
178 FileSpec &sym_file);
180 /// Resolves the FileSpec to a (possibly) remote path. Remote platforms must
182 virtual bool ResolveRemotePath(const FileSpec &platform_path,
183 FileSpec &resolved_platform_path);
237 virtual FileSpec GetRemoteWorkingDirectory() { return m_working_dir; }
239 virtual bool SetRemoteWorkingDirectory(const FileSpec
[all...]
/llvm-project/lldb/source/Target/
H A DModuleCache.cpp54 FileSpec m_file_spec;
57 ModuleLock(const FileSpec &root_dir_spec, const UUID &uuid, Status &error);
61 static FileSpec JoinPath(const FileSpec &path1, const char *path2) { in JoinPath()
62 FileSpec result_spec(path1); in JoinPath()
67 static Status MakeDirectory(const FileSpec &dir_path) { in MakeDirectory()
73 FileSpec GetModuleDirectory(const FileSpec &root_dir_spec, const UUID &uuid) { in GetModuleDirectory()
78 FileSpec GetSymbolFileSpec(const FileSpec
[all...]
H A DRemoteAwarePlatform.cpp22 bool RemoteAwarePlatform::GetModuleSpec(const FileSpec &module_file_spec, in GetModuleSpec()
39 FileSpec &resolved_file_spec = resolved_module_spec.GetFileSpec(); in ResolveExecutable()
43 FileSpec::Style::native); in ResolveExecutable()
59 llvm::StringRef command, const FileSpec &working_dir, int *status_ptr, in RunShellCommand()
67 llvm::StringRef shell, llvm::StringRef command, const FileSpec &working_dir, in RunShellCommand()
78 Status RemoteAwarePlatform::MakeDirectory(const FileSpec &file_spec, in MakeDirectory()
85 Status RemoteAwarePlatform::GetFilePermissions(const FileSpec &file_spec, in GetFilePermissions()
93 Status RemoteAwarePlatform::SetFilePermissions(const FileSpec &file_spec, in SetFilePermissions()
101 lldb::user_id_t RemoteAwarePlatform::OpenFile(const FileSpec &file_spec, in OpenFile()
131 lldb::user_id_t RemoteAwarePlatform::GetFileSize(const FileSpec in GetFileSize()
[all...]
/llvm-project/lldb/include/lldb/Core/
H A DSourceManager.h13 #include "lldb/Utility/FileSpec.h"
128 void AddSourceFile(const FileSpec &file_spec, FileSP file_sp);
131 FileSP FindSourceFile(const FileSpec &file_spec) const;
139 void AddSourceFileImpl(const FileSpec &file_spec, FileSP file_sp);
141 typedef std::map<FileSpec, FileSP> FileCache;
H A DModuleSpec.h34 ModuleSpec(const FileSpec &file_spec, const UUID &uuid = UUID(),
43 ModuleSpec(const FileSpec &file_spec, const ArchSpec &arch) in ModuleSpec()
47 FileSpec *GetFileSpecPtr() { return (m_file ? &m_file : nullptr); } in GetFileSpecPtr()
49 const FileSpec *GetFileSpecPtr() const { in GetFileSpecPtr()
53 FileSpec &GetFileSpec() { return m_file; } in GetFileSpec()
55 const FileSpec &GetFileSpec() const { return m_file; } in GetFileSpec()
57 FileSpec *GetPlatformFileSpecPtr() { in GetPlatformFileSpecPtr()
61 const FileSpec *GetPlatformFileSpecPtr() const { in GetPlatformFileSpecPtr()
65 FileSpec &GetPlatformFileSpec() { return m_platform_file; } in GetPlatformFileSpec()
67 const FileSpec &GetPlatformFileSpec() const { return m_platform_file; } in GetPlatformFileSpec()
[all …]
/llvm-project/lldb/source/Plugins/Trace/intel-pt/
H A DTraceIntelPTBundleSaver.cpp36 static std::string GetRelativePath(const FileSpec &directory, in GetRelativePath()
37 const FileSpec &path) { in GetRelativePath()
43 static llvm::Error WriteBytesToDisk(FileSpec &output_file, in WriteBytesToDisk()
68 /// A \a FileSpec pointing to the bundle description file, or an \a
70 static Expected<FileSpec>
72 const FileSpec &directory) { in SaveTraceBundleDescription()
73 FileSpec trace_path = directory; in SaveTraceBundleDescription()
98 BuildThreadsSection(Process &process, FileSpec directory) { in BuildThreadsSection()
102 FileSpec threads_dir = directory; in BuildThreadsSection()
115 FileSpec output_fil in BuildThreadsSection()
[all...]
/llvm-project/lldb/source/Plugins/Platform/gdb-server/
H A DPlatformRemoteGDBServer.h43 bool GetModuleSpec(const FileSpec &module_file_spec, const ArchSpec &arch,
48 Status GetFileWithUUID(const FileSpec &platform_file, const UUID *uuid_ptr,
49 FileSpec &local_file) override;
86 FileSpec GetRemoteWorkingDirectory() override;
88 bool SetRemoteWorkingDirectory(const FileSpec &working_dir) override;
102 Status MakeDirectory(const FileSpec &file_spec,
105 Status GetFilePermissions(const FileSpec &file_spec,
108 Status SetFilePermissions(const FileSpec &file_spec,
111 lldb::user_id_t OpenFile(const FileSpec &file_spec, File::OpenOptions flags,
122 lldb::user_id_t GetFileSize(const FileSpec &file_spec) override;
[all …]
/llvm-project/lldb/unittests/Host/
H A DProcessLaunchInfoTest.cpp16 ProcessLaunchInfo Info(FileSpec("/stdin"), FileSpec("/stdout"), in TEST()
17 FileSpec("/stderr"), FileSpec("/wd"), in TEST()
19 EXPECT_EQ(FileSpec("/stdin"), in TEST()
21 EXPECT_EQ(FileSpec("/stdout"), in TEST()
23 EXPECT_EQ(FileSpec("/stderr"), in TEST()
25 EXPECT_EQ(FileSpec("/wd"), Info.GetWorkingDirectory()); in TEST()
/llvm-project/lldb/include/lldb/Interpreter/
H A DOptionValueFileSpec.h24 OptionValueFileSpec(const FileSpec &value, bool resolve = true);
26 OptionValueFileSpec(const FileSpec &current_value,
27 const FileSpec &default_value, bool resolve = true);
58 FileSpec &GetCurrentValue() { return m_current_value; } in GetCurrentValue()
60 const FileSpec &GetCurrentValue() const { return m_current_value; } in GetCurrentValue()
62 const FileSpec &GetDefaultValue() const { return m_default_value; } in GetDefaultValue()
64 void SetCurrentValue(const FileSpec &value, bool set_value_was_set) { in SetCurrentValue()
71 void SetDefaultValue(const FileSpec &value) { m_default_value = value; } in SetDefaultValue()
78 FileSpec m_current_value;
79 FileSpec m_default_value;
/llvm-project/lldb/unittests/SymbolFile/PDB/
H A DSymbolFilePDBTests.cpp81 bool FileSpecMatchesAsBaseOrFull(const FileSpec &left, in FileSpecMatchesAsBaseOrFull()
82 const FileSpec &right) const { in FileSpecMatchesAsBaseOrFull()
95 const FileSpec &spec, LineTable &lt, uint32_t line, in VerifyLineEntry()
109 const FileSpec &spec) const { in ContainsCompileUnit()
150 FileSpec fspec(m_pdb_test_exe); in TEST_F()
166 FileSpec fspec(m_pdb_test_exe); in TEST_F()
172 FileSpec header_spec("test-pdb.cpp"); in TEST_F()
185 FileSpec fspec(m_pdb_test_exe); in TEST_F()
191 FileSpec header_spec( in TEST_F()
207 FileSpec fspec(m_pdb_test_exe); in TEST_F()
[all …]

12345678910>>...16