Lines Matching refs:Style
37 static constexpr FileSpec::Style GetNativeStyle() { in GetNativeStyle()
39 return FileSpec::Style::windows; in GetNativeStyle()
41 return FileSpec::Style::posix; in GetNativeStyle()
45 bool PathStyleIsPosix(FileSpec::Style style) { in PathStyleIsPosix()
49 const char *GetPathSeparators(FileSpec::Style style) { in GetPathSeparators()
53 char GetPreferredPathSeparator(FileSpec::Style style) { in GetPreferredPathSeparator()
57 void Denormalize(llvm::SmallVectorImpl<char> &path, FileSpec::Style style) { in Denormalize()
69 FileSpec::FileSpec(llvm::StringRef path, Style style) : m_style(style) { in FileSpec()
74 : FileSpec{path, triple.isOSWindows() ? Style::windows : Style::posix} {} in FileSpec()
172 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()
308 llvm::Optional<FileSpec::Style> FileSpec::GuessPathStyle(llvm::StringRef absolute_path) { in GuessPathStyle()
310 return Style::posix; in GuessPathStyle()
312 return Style::windows; in GuessPathStyle()
316 return Style::windows; in GuessPathStyle()
331 FileSpec::Style FileSpec::GetPathStyle() const { return m_style; } in GetPathStyle()
500 StringRef Style) { in format() argument
501 assert((Style.empty() || Style.equals_insensitive("F") || in format()
502 Style.equals_insensitive("D")) && in format()
513 if (Style.equals_insensitive("F")) { in format()
529 if (Style.equals_insensitive("D")) { in format()
542 io.enumCase(value, "windows", FileSpecStyle(FileSpec::Style::windows)); in enumeration()
543 io.enumCase(value, "posix", FileSpecStyle(FileSpec::Style::posix)); in enumeration()
544 io.enumCase(value, "native", FileSpecStyle(FileSpec::Style::native)); in enumeration()