Home
last modified time | relevance | path

Searched refs:GuessPathStyle (Results 1 – 6 of 6) sorted by relevance

/llvm-project-15.0.7/lldb/unittests/Utility/
H A DFileSpecTest.cpp194 TEST(FileSpecTest, GuessPathStyle) { in TEST() argument
195 EXPECT_EQ(FileSpec::Style::posix, FileSpec::GuessPathStyle("/foo/bar.txt")); in TEST()
196 EXPECT_EQ(FileSpec::Style::posix, FileSpec::GuessPathStyle("//net/bar.txt")); in TEST()
198 FileSpec::GuessPathStyle(R"(C:\foo.txt)")); in TEST()
200 FileSpec::GuessPathStyle(R"(C:/foo.txt)")); in TEST()
202 FileSpec::GuessPathStyle(R"(\\net\foo.txt)")); in TEST()
203 EXPECT_EQ(FileSpec::Style::windows, FileSpec::GuessPathStyle(R"(Z:\)")); in TEST()
204 EXPECT_EQ(FileSpec::Style::windows, FileSpec::GuessPathStyle(R"(Z:/)")); in TEST()
205 EXPECT_EQ(llvm::None, FileSpec::GuessPathStyle("foo.txt")); in TEST()
206 EXPECT_EQ(llvm::None, FileSpec::GuessPathStyle("foo/bar.txt")); in TEST()
[all …]
/llvm-project-15.0.7/lldb/source/Target/
H A DPathMappingList.cpp191 auto orig_style = FileSpec::GuessPathStyle(prefix).value_or( in RemapPath()
207 auto orig_style = FileSpec::GuessPathStyle(orig_file).value_or( in ReverseRemapPath()
/llvm-project-15.0.7/lldb/include/lldb/Utility/
H A DFileSpec.h198 static llvm::Optional<Style> GuessPathStyle(llvm::StringRef absolute_path);
/llvm-project-15.0.7/lldb/source/Plugins/SymbolFile/DWARF/
H A DDWARFUnit.cpp803 FileSpec::GuessPathStyle(comp_dir).value_or(FileSpec::Style::native); in ComputeCompDirAndGuessPathStyle()
811 "", FileSpec::GuessPathStyle(name).value_or(FileSpec::Style::native)); in ComputeCompDirAndGuessPathStyle()
/llvm-project-15.0.7/lldb/source/Utility/
H A DFileSpec.cpp308 llvm::Optional<FileSpec::Style> FileSpec::GuessPathStyle(llvm::StringRef absolute_path) { in GuessPathStyle() function in FileSpec
/llvm-project-15.0.7/lldb/source/Plugins/SymbolFile/Breakpad/
H A DSymbolFileBreakpad.cpp807 FileSpec::Style style = FileSpec::GuessPathStyle(record->Name) in ParseFileRecords()