Searched refs:GuessPathStyle (Results 1 – 6 of 6) sorted by relevance
194 TEST(FileSpecTest, GuessPathStyle) { in TEST() argument195 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 …]
191 auto orig_style = FileSpec::GuessPathStyle(prefix).value_or( in RemapPath()207 auto orig_style = FileSpec::GuessPathStyle(orig_file).value_or( in ReverseRemapPath()
198 static llvm::Optional<Style> GuessPathStyle(llvm::StringRef absolute_path);
803 FileSpec::GuessPathStyle(comp_dir).value_or(FileSpec::Style::native); in ComputeCompDirAndGuessPathStyle()811 "", FileSpec::GuessPathStyle(name).value_or(FileSpec::Style::native)); in ComputeCompDirAndGuessPathStyle()
308 llvm::Optional<FileSpec::Style> FileSpec::GuessPathStyle(llvm::StringRef absolute_path) { in GuessPathStyle() function in FileSpec
807 FileSpec::Style style = FileSpec::GuessPathStyle(record->Name) in ParseFileRecords()