Lines Matching refs:Style
39 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()
71 FileSpec::FileSpec(llvm::StringRef path, Style style) : m_style(style) { in FileSpec()
76 : FileSpec{path, triple.isOSWindows() ? Style::windows : Style::posix} {} in FileSpec()
174 void FileSpec::SetFile(llvm::StringRef pathname, Style style) { in SetFile()
176 m_style = (style == Style::native) ? GetNativeStyle() : style; in SetFile()
188 if (m_style == Style::windows) in SetFile()
211 return SetFile(path, triple.isOSWindows() ? Style::windows : Style::posix); in SetFile()
309 std::optional<FileSpec::Style>
312 return Style::posix; in GuessPathStyle()
314 return Style::windows; in GuessPathStyle()
318 return Style::windows; in GuessPathStyle()
333 FileSpec::Style FileSpec::GetPathStyle() const { return m_style; } in GetPathStyle()
537 StringRef Style) { in format() argument
538 assert((Style.empty() || Style.equals_insensitive("F") || in format()
539 Style.equals_insensitive("D")) && in format()
550 if (Style.equals_insensitive("F")) { in format()
566 if (Style.equals_insensitive("D")) { in format()