Lines Matching refs:FileSpec

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()
66 FileSpec::FileSpec() : m_style(GetNativeStyle()) {} in FileSpec() function in FileSpec
69 FileSpec::FileSpec(llvm::StringRef path, Style style) : m_style(style) { in FileSpec() function in FileSpec
73 FileSpec::FileSpec(llvm::StringRef path, const llvm::Triple &triple) in FileSpec() function in FileSpec
74 : FileSpec{path, triple.isOSWindows() ? Style::windows : Style::posix} {} in FileSpec()
167 void FileSpec::SetFile(llvm::StringRef pathname) { SetFile(pathname, m_style); } in SetFile()
172 void FileSpec::SetFile(llvm::StringRef pathname, Style style) { in SetFile()
210 void FileSpec::SetFile(llvm::StringRef path, const llvm::Triple &triple) { in SetFile()
219 FileSpec::operator bool() const { return m_filename || m_directory; } in operator bool()
226 bool FileSpec::operator!() const { return !m_directory && !m_filename; } in operator !()
228 bool FileSpec::DirectoryEquals(const FileSpec &rhs) const { in DirectoryEquals()
233 bool FileSpec::FileEquals(const FileSpec &rhs) const { in FileEquals()
239 bool FileSpec::operator==(const FileSpec &rhs) const { in operator ==()
244 bool FileSpec::operator!=(const FileSpec &rhs) const { return !(*this == rhs); } in operator !=()
247 bool FileSpec::operator<(const FileSpec &rhs) const { in operator <()
248 return FileSpec::Compare(*this, rhs, true) < 0; in operator <()
252 Stream &lldb_private::operator<<(Stream &s, const FileSpec &f) { in operator <<()
259 void FileSpec::Clear() { in Clear()
272 int FileSpec::Compare(const FileSpec &a, const FileSpec &b, bool full) { in Compare()
293 bool FileSpec::Equal(const FileSpec &a, const FileSpec &b, bool full) { in Equal()
300 bool FileSpec::Match(const FileSpec &pattern, const FileSpec &file) { in Match()
308 llvm::Optional<FileSpec::Style> FileSpec::GuessPathStyle(llvm::StringRef absolute_path) { in GuessPathStyle()
323 void FileSpec::Dump(llvm::raw_ostream &s) const { in Dump()
331 FileSpec::Style FileSpec::GetPathStyle() const { return m_style; } in GetPathStyle()
334 ConstString &FileSpec::GetDirectory() { return m_directory; } in GetDirectory()
337 ConstString FileSpec::GetDirectory() const { return m_directory; } in GetDirectory()
340 ConstString &FileSpec::GetFilename() { return m_filename; } in GetFilename()
343 ConstString FileSpec::GetFilename() const { return m_filename; } in GetFilename()
347 size_t FileSpec::GetPath(char *path, size_t path_max_len, in GetPath()
357 std::string FileSpec::GetPath(bool denormalize) const { in GetPath()
363 const char *FileSpec::GetCString(bool denormalize) const { in GetCString()
367 void FileSpec::GetPath(llvm::SmallVectorImpl<char> &path, in GetPath()
383 ConstString FileSpec::GetFileNameExtension() const { in GetFileNameExtension()
388 ConstString FileSpec::GetFileNameStrippingExtension() const { in GetFileNameStrippingExtension()
394 size_t FileSpec::MemorySize() const { in MemorySize()
398 FileSpec
399 FileSpec::CopyByAppendingPathComponent(llvm::StringRef component) const { in CopyByAppendingPathComponent()
400 FileSpec ret = *this; in CopyByAppendingPathComponent()
405 FileSpec FileSpec::CopyByRemovingLastPathComponent() const { in CopyByRemovingLastPathComponent()
409 return FileSpec(llvm::sys::path::parent_path(current_path, m_style), in CopyByRemovingLastPathComponent()
414 ConstString FileSpec::GetLastPathComponent() const { in GetLastPathComponent()
420 void FileSpec::PrependPathComponent(llvm::StringRef component) { in PrependPathComponent()
430 void FileSpec::PrependPathComponent(const FileSpec &new_path) { in PrependPathComponent()
434 void FileSpec::AppendPathComponent(llvm::StringRef component) { in AppendPathComponent()
441 void FileSpec::AppendPathComponent(const FileSpec &new_path) { in AppendPathComponent()
445 bool FileSpec::RemoveLastPathComponent() { in RemoveLastPathComponent()
461 bool FileSpec::IsSourceImplementationFile() const { in IsSourceImplementationFile()
474 bool FileSpec::IsRelative() const { in IsRelative()
478 bool FileSpec::IsAbsolute() const { in IsAbsolute()
493 void FileSpec::MakeAbsolute(const FileSpec &dir) { in MakeAbsolute()
498 void llvm::format_provider<FileSpec>::format(const FileSpec &F, 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()
547 void llvm::yaml::MappingTraits<FileSpec>::mapping(IO &io, FileSpec &f) { in mapping()