Searched refs:GuessPathStyle (Results 1 – 5 of 5) 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"(\\net\foo.txt)")); in TEST()201 EXPECT_EQ(llvm::None, FileSpec::GuessPathStyle("foo.txt")); in TEST()202 EXPECT_EQ(llvm::None, FileSpec::GuessPathStyle("foo/bar.txt")); in TEST()
198 static llvm::Optional<Style> GuessPathStyle(llvm::StringRef absolute_path);
728 FileSpec::GuessPathStyle(comp_dir).getValueOr(FileSpec::Style::native); in ComputeCompDirAndGuessPathStyle()736 "", FileSpec::GuessPathStyle(name).getValueOr(FileSpec::Style::native)); in ComputeCompDirAndGuessPathStyle()
310 llvm::Optional<FileSpec::Style> FileSpec::GuessPathStyle(llvm::StringRef absolute_path) { in GuessPathStyle() function in FileSpec
673 FileSpec::Style style = FileSpec::GuessPathStyle(record->Name) in ParseFileRecords()