Home
last modified time | relevance | path

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

12345678910>>...15

/external/llvm-project/lldb/source/Utility/
DFileSpec.cpp37 static constexpr FileSpec::Style GetNativeStyle() { in GetNativeStyle()
39 return FileSpec::Style::windows; in GetNativeStyle()
41 return FileSpec::Style::posix; in GetNativeStyle()
45 bool PathStyleIsPosix(FileSpec::Style style) { in PathStyleIsPosix()
46 return (style == FileSpec::Style::posix || in PathStyleIsPosix()
47 (style == FileSpec::Style::native && in PathStyleIsPosix()
48 GetNativeStyle() == FileSpec::Style::posix)); 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()
[all …]
/external/llvm-project/lldb/unittests/Utility/
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 …]
DReproducerTest.cpp30 DummyProvider(const FileSpec &directory) : Provider(directory) {} in DummyProvider()
43 YamlMultiProvider(const FileSpec &directory) : MultiProvider(directory) {} in YamlMultiProvider()
92 reproducer.SetCapture(FileSpec("//bogus/path", FileSpec::Style::posix)), in TEST()
95 EXPECT_EQ(FileSpec("//bogus/path", FileSpec::Style::posix), in TEST()
97 EXPECT_EQ(FileSpec("//bogus/path", FileSpec::Style::posix), in TEST()
102 reproducer.SetReplay(FileSpec("//bogus/path", FileSpec::Style::posix)), in TEST()
121 reproducer.SetReplay(FileSpec("//bogus/path", FileSpec::Style::posix)), in TEST()
127 EXPECT_EQ(FileSpec("//bogus/path", FileSpec::Style::posix), in TEST()
129 EXPECT_EQ(FileSpec("//bogus/path", FileSpec::Style::posix), in TEST()
134 reproducer.SetCapture(FileSpec("//bogus/path", FileSpec::Style::posix)), in TEST()
[all …]
/external/llvm-project/lldb/include/lldb/Host/
DHostInfoBase.h26 class FileSpec; variable
65 static FileSpec GetShlibDir();
69 static FileSpec GetSupportExeDir();
73 static FileSpec GetHeaderDir();
77 static FileSpec GetSystemPluginDir();
81 static FileSpec GetUserPluginDir();
86 static FileSpec GetProcessTempDir();
91 static FileSpec GetGlobalTempDir();
98 static bool ComputePathRelativeToLibrary(FileSpec &file_spec,
101 static FileSpec GetXcodeContentsDirectory() { return {}; } in GetXcodeContentsDirectory()
[all …]
DFileSystem.h52 static llvm::Error Initialize(const FileSpec &mapping);
56 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;
[all …]
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);
150 FileSpec m_working_dir;
[all …]
/external/llvm-project/lldb/include/lldb/Utility/
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 …]
DReproducer.h45 const FileSpec &GetRoot() const { return m_root; } in GetRoot()
65 ProviderBase(const FileSpec &root) : m_root(root) {} in ProviderBase()
69 FileSpec m_root;
94 Generator(FileSpec root);
134 const FileSpec &GetRoot() const;
149 FileSpec m_root;
160 Loader(FileSpec root, bool passive = false);
162 template <typename T> FileSpec GetFile() { in GetFile()
170 FileSpec file = GetFile<typename T::Info>(); in LoadBuffer()
180 const FileSpec &GetRoot() const { return m_root; } in GetRoot()
[all …]
DReproducerProvider.h33 AbstractRecorder(const FileSpec &filename, std::error_code &ec) in AbstractRecorder()
38 const FileSpec &GetFilename() { return m_filename; } in GetFilename()
46 FileSpec m_filename;
56 DataRecorder(const FileSpec &filename, std::error_code &ec) in DataRecorder()
60 Create(const FileSpec &filename);
75 YamlRecorder(const FileSpec &filename, std::error_code &ec) in YamlRecorder()
79 Create(const FileSpec &filename);
117 FileProvider(const FileSpec &directory) : Provider(directory) { in FileProvider()
145 VersionProvider(const FileSpec &directory) : Provider(directory) {} in VersionProvider()
162 DirectoryProvider(const FileSpec &root) : Provider<T>(root) {} in DirectoryProvider()
[all …]
/external/llvm-project/lldb/source/Host/common/
DHostInfoBase.cpp58 FileSpec m_lldb_so_dir;
60 FileSpec m_lldb_support_exe_dir;
62 FileSpec m_lldb_headers_dir;
64 FileSpec m_lldb_clang_resource_dir;
66 FileSpec m_lldb_system_plugin_dir;
68 FileSpec m_lldb_user_plugin_dir;
70 FileSpec m_lldb_process_tmp_dir;
72 FileSpec m_lldb_global_tmp_dir;
118 FileSpec HostInfoBase::GetShlibDir() { in GetShlibDir()
121 g_fields->m_lldb_so_dir = FileSpec(); in GetShlibDir()
[all …]
/external/llvm-project/lldb/unittests/Target/
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 &cache_dir, const char *hostname) { in VerifyDiskState()
73 FileSpec uuid_view = GetUuidView(cache_dir); in VerifyDiskState()
78 FileSpec sysroot_view = GetSysrootView(cache_dir, hostname); in VerifyDiskState()
84 void ModuleCacheTest::TryGetAndPut(const FileSpec &cache_dir, in TryGetAndPut()
[all …]
/external/llvm-project/lldb/include/lldb/Target/
DRemoteAwarePlatform.h22 bool GetModuleSpec(const FileSpec &module_file_spec, const ArchSpec &arch,
29 lldb::user_id_t OpenFile(const FileSpec &file_spec, File::OpenOptions flags,
40 lldb::user_id_t GetFileSize(const FileSpec &file_spec) override;
42 Status CreateSymlink(const FileSpec &src, const FileSpec &dst) override;
44 bool GetFileExists(const FileSpec &file_spec) override;
46 Status Unlink(const FileSpec &file_spec) override;
48 FileSpec GetRemoteWorkingDirectory() override;
50 bool SetRemoteWorkingDirectory(const FileSpec &working_dir) override;
52 Status MakeDirectory(const FileSpec &file_spec, uint32_t mode) override;
54 Status GetFilePermissions(const FileSpec &file_spec,
[all …]
DPlatform.h51 FileSpec GetModuleCacheDirectory() const;
52 bool SetModuleCacheDirectory(const FileSpec &dir_spec);
55 void SetDefaultModuleCacheDirectory(const FileSpec &dir_spec);
200 FileSpec &sym_file);
204 virtual bool ResolveRemotePath(const FileSpec &platform_path,
205 FileSpec &resolved_platform_path);
261 virtual FileSpec GetRemoteWorkingDirectory() { return m_working_dir; } in GetRemoteWorkingDirectory()
263 virtual bool SetRemoteWorkingDirectory(const FileSpec &working_dir);
293 virtual Status GetFileWithUUID(const FileSpec &platform_file,
294 const UUID *uuid_ptr, FileSpec &local_file);
[all …]
/external/llvm-project/lldb/source/Target/
DModuleCache.cpp53 FileSpec m_file_spec;
56 ModuleLock(const FileSpec &root_dir_spec, const UUID &uuid, Status &error);
60 static FileSpec JoinPath(const FileSpec &path1, const char *path2) { in JoinPath()
61 FileSpec result_spec(path1); in JoinPath()
66 static Status MakeDirectory(const FileSpec &dir_path) { in MakeDirectory()
72 FileSpec GetModuleDirectory(const FileSpec &root_dir_spec, const UUID &uuid) { in GetModuleDirectory()
77 FileSpec GetSymbolFileSpec(const FileSpec &module_file_spec) { in GetSymbolFileSpec()
78 return FileSpec(module_file_spec.GetPath() + kSymFileExtension); in GetSymbolFileSpec()
81 void DeleteExistingModule(const FileSpec &root_dir_spec, in DeleteExistingModule()
82 const FileSpec &sysroot_module_path_spec) { in DeleteExistingModule()
[all …]
/external/llvm-project/lldb/source/Symbol/
DLocateSymbolFile.cpp49 static bool FileAtPathContainsArchAndUUID(const FileSpec &file_fspec, in FileAtPathContainsArchAndUUID()
78 const FileSpec &exec_fspec, in LookForDsymNextToExecutablePath()
79 FileSpec &dsym_fspec) { in LookForDsymNextToExecutablePath()
81 FileSpec dsym_directory = exec_fspec; in LookForDsymNextToExecutablePath()
123 FileSpec dsym_yaa_fspec = exec_fspec; in LookForDsymNextToExecutablePath()
154 FileSpec &dsym_fspec) { in LocateDSYMInVincinityOfExecutable()
156 const FileSpec &exec_fspec = module_spec.GetFileSpec(); in LocateDSYMInVincinityOfExecutable()
166 FileSpec parent_dirs = exec_fspec; in LocateDSYMInVincinityOfExecutable()
207 static FileSpec LocateExecutableSymbolFileDsym(const ModuleSpec &module_spec) { in LocateExecutableSymbolFileDsym()
208 const FileSpec *exec_fspec = module_spec.GetFileSpecPtr(); in LocateExecutableSymbolFileDsym()
[all …]
/external/llvm-project/lldb/unittests/Host/
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()
/external/llvm-project/lldb/include/lldb/Interpreter/
DOptionValueFileSpec.h23 OptionValueFileSpec(const FileSpec &value, bool resolve = true);
25 OptionValueFileSpec(const FileSpec &current_value,
26 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;
/external/llvm-project/lldb/include/lldb/Core/
DSourceManager.h38 File(const FileSpec &file_spec, Target *target);
39 File(const FileSpec &file_spec, lldb::DebuggerSP debugger_sp);
57 const FileSpec &GetFileSpec() { return m_file_spec; } in GetFileSpec()
70 FileSpec m_file_spec_orig; // The original file spec that was used (can be
72 FileSpec m_file_spec; // The actually file spec being used (if the target
88 void CommonInitializer(const FileSpec &file_spec, Target *target);
102 FileSP FindSourceFile(const FileSpec &file_spec) const;
108 typedef std::map<FileSpec, FileSP> FileCache;
125 DisplaySourceLinesWithLineNumbers(const FileSpec &file, uint32_t line,
140 bool SetDefaultFileAndLine(const FileSpec &file_spec, uint32_t line);
[all …]
DModuleSpec.h36 ModuleSpec(const FileSpec &file_spec, const UUID &uuid = UUID(),
47 ModuleSpec(const FileSpec &file_spec, const ArchSpec &arch) in ModuleSpec()
53 FileSpec *GetFileSpecPtr() { return (m_file ? &m_file : nullptr); } in GetFileSpecPtr()
55 const FileSpec *GetFileSpecPtr() const { in GetFileSpecPtr()
59 FileSpec &GetFileSpec() { return m_file; } in GetFileSpec()
61 const FileSpec &GetFileSpec() const { return m_file; } in GetFileSpec()
63 FileSpec *GetPlatformFileSpecPtr() { in GetPlatformFileSpecPtr()
67 const FileSpec *GetPlatformFileSpecPtr() const { in GetPlatformFileSpecPtr()
71 FileSpec &GetPlatformFileSpec() { return m_platform_file; } in GetPlatformFileSpec()
73 const FileSpec &GetPlatformFileSpec() const { return m_platform_file; } in GetPlatformFileSpec()
[all …]
DFileSpecList.h28 typedef std::vector<FileSpec> collection;
43 FileSpecList(std::vector<FileSpec> &&rhs) : m_files(std::move(rhs)) {} in FileSpecList()
68 void Append(const FileSpec &file);
80 bool AppendIfUnique(const FileSpec &file);
117 size_t FindFileIndex(size_t idx, const FileSpec &file, bool full) const;
132 const FileSpec &GetFileSpecAtIndex(size_t idx) const;
145 const FileSpec *GetFileSpecPointerAtIndex(size_t idx) const;
167 bool Insert(size_t idx, const FileSpec &file) { in Insert()
178 bool Replace(size_t idx, const FileSpec &file) { in Replace()
/external/llvm-project/lldb/source/Plugins/Platform/gdb-server/
DPlatformRemoteGDBServer.h49 bool GetModuleSpec(const FileSpec &module_file_spec, const ArchSpec &arch,
54 Status GetFileWithUUID(const FileSpec &platform_file, const UUID *uuid_ptr,
55 FileSpec &local_file) override;
92 FileSpec GetRemoteWorkingDirectory() override;
94 bool SetRemoteWorkingDirectory(const FileSpec &working_dir) override;
108 Status MakeDirectory(const FileSpec &file_spec,
111 Status GetFilePermissions(const FileSpec &file_spec,
114 Status SetFilePermissions(const FileSpec &file_spec,
117 lldb::user_id_t OpenFile(const FileSpec &file_spec, File::OpenOptions flags,
128 lldb::user_id_t GetFileSize(const FileSpec &file_spec) override;
[all …]
/external/llvm-project/lldb/source/Plugins/Platform/Android/
DAdbClient.h22 class FileSpec; variable
41 Status PullFile(const FileSpec &remote_file, const FileSpec &local_file);
43 Status PushFile(const FileSpec &local_file, const FileSpec &remote_file);
45 Status Stat(const FileSpec &remote_file, uint32_t &mode, uint32_t &size,
62 Status internalPullFile(const FileSpec &remote_file,
63 const FileSpec &local_file);
65 Status internalPushFile(const FileSpec &local_file,
66 const FileSpec &remote_file);
68 Status internalStat(const FileSpec &remote_file, uint32_t &mode,
100 const FileSpec &output_file_spec);
/external/llvm-project/lldb/source/Host/android/
DHostInfoAndroid.cpp30 FileSpec HostInfoAndroid::GetDefaultShell() { in GetDefaultShell()
31 return FileSpec("/system/bin/sh"); in GetDefaultShell()
34 FileSpec HostInfoAndroid::ResolveLibraryPath(const std::string &module_path, in ResolveLibraryPath()
43 FileSpec file_spec(module_path.c_str()); in ResolveLibraryPath()
64 return FileSpec(); in ResolveLibraryPath()
71 FileSpec file_candidate(path.str().c_str()); in ResolveLibraryPath()
79 return FileSpec(); in ResolveLibraryPath()
82 bool HostInfoAndroid::ComputeTempFileBaseDirectory(FileSpec &file_spec) { in ComputeTempFileBaseDirectory()
91 file_spec = FileSpec("/data/local/tmp"); in ComputeTempFileBaseDirectory()
/external/llvm-project/lldb/include/lldb/Host/macosx/
DHostInfoMacOSX.h34 static FileSpec GetProgramFileSpec();
35 static FileSpec GetXcodeContentsDirectory();
36 static FileSpec GetXcodeDeveloperDirectory();
46 static bool ComputeSupportExeDirectory(FileSpec &file_spec);
49 static bool ComputeHeaderDirectory(FileSpec &file_spec);
50 static bool ComputeSystemPluginsDirectory(FileSpec &file_spec);
51 static bool ComputeUserPluginsDirectory(FileSpec &file_spec);
/external/llvm-project/lldb/unittests/SymbolFile/PDB/
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()
184 FileSpec fspec(m_pdb_test_exe); in TEST_F()
190 FileSpec header_spec( in TEST_F()
205 FileSpec fspec(m_pdb_test_exe); in TEST_F()
[all …]

12345678910>>...15