Lines Matching refs:Style
38 static constexpr FileSpec::Style GetNativeStyle() { in GetNativeStyle()
40 return FileSpec::Style::windows; in GetNativeStyle()
42 return FileSpec::Style::posix; in GetNativeStyle()
46 bool PathStyleIsPosix(FileSpec::Style style) { in PathStyleIsPosix()
47 return (style == FileSpec::Style::posix || in PathStyleIsPosix()
48 (style == FileSpec::Style::native && in PathStyleIsPosix()
49 GetNativeStyle() == FileSpec::Style::posix)); in PathStyleIsPosix()
52 const char *GetPathSeparators(FileSpec::Style style) { in GetPathSeparators()
56 char GetPreferredPathSeparator(FileSpec::Style style) { in GetPreferredPathSeparator()
60 void Denormalize(llvm::SmallVectorImpl<char> &path, FileSpec::Style style) { in Denormalize()
74 FileSpec::FileSpec(llvm::StringRef path, Style style) : m_style(style) { in FileSpec()
79 : FileSpec{path, Triple.isOSWindows() ? Style::windows : Style::posix} {} in FileSpec()
215 void FileSpec::SetFile(llvm::StringRef pathname, Style style) { in SetFile()
219 m_style = (style == Style::native) ? GetNativeStyle() : style; in SetFile()
231 if (m_style == Style::windows) in SetFile()
254 return SetFile(path, Triple.isOSWindows() ? Style::windows : Style::posix); in SetFile()
384 FileSpec::Style FileSpec::GetPathStyle() const { return m_style; } in GetPathStyle()
562 StringRef Style) { in format() argument
564 (Style.empty() || Style.equals_lower("F") || Style.equals_lower("D")) && in format()
575 if (Style.equals_lower("F")) { in format()
591 if (Style.equals_lower("D")) { in format()