Lines Matching refs:FileSpec

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()
68 FileSpec::FileSpec() : m_style(GetNativeStyle()) {} in FileSpec() function in FileSpec
71 FileSpec::FileSpec(llvm::StringRef path, Style style) : m_style(style) { in FileSpec() function in FileSpec
75 FileSpec::FileSpec(llvm::StringRef path, const llvm::Triple &triple) in FileSpec() function in FileSpec
76 : FileSpec{path, triple.isOSWindows() ? Style::windows : Style::posix} {} in FileSpec()
169 void FileSpec::SetFile(llvm::StringRef pathname) { SetFile(pathname, m_style); } in SetFile()
174 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()
273 int FileSpec::Compare(const FileSpec &a, const FileSpec &b, bool full) { in Compare()
294 bool FileSpec::Equal(const FileSpec &a, const FileSpec &b, bool full) { in Equal()
301 bool FileSpec::Match(const FileSpec &pattern, const FileSpec &file) { in Match()
309 std::optional<FileSpec::Style>
310 FileSpec::GuessPathStyle(llvm::StringRef absolute_path) { in GuessPathStyle()
325 void FileSpec::Dump(llvm::raw_ostream &s) const { in Dump()
333 FileSpec::Style FileSpec::GetPathStyle() const { return m_style; } in GetPathStyle()
335 void FileSpec::SetDirectory(ConstString directory) { in SetDirectory()
340 void FileSpec::SetDirectory(llvm::StringRef directory) { in SetDirectory()
345 void FileSpec::SetFilename(ConstString filename) { in SetFilename()
350 void FileSpec::SetFilename(llvm::StringRef filename) { in SetFilename()
355 void FileSpec::ClearFilename() { in ClearFilename()
360 void FileSpec::ClearDirectory() { in ClearDirectory()
367 size_t FileSpec::GetPath(char *path, size_t path_max_len, in GetPath()
377 std::string FileSpec::GetPath(bool denormalize) const { in GetPath()
383 ConstString FileSpec::GetPathAsConstString(bool denormalize) const { in GetPathAsConstString()
387 void FileSpec::GetPath(llvm::SmallVectorImpl<char> &path, in GetPath()
403 llvm::StringRef FileSpec::GetFileNameExtension() const { in GetFileNameExtension()
407 ConstString FileSpec::GetFileNameStrippingExtension() const { in GetFileNameStrippingExtension()
413 size_t FileSpec::MemorySize() const { in MemorySize()
417 FileSpec
418 FileSpec::CopyByAppendingPathComponent(llvm::StringRef component) const { in CopyByAppendingPathComponent()
419 FileSpec ret = *this; in CopyByAppendingPathComponent()
424 FileSpec FileSpec::CopyByRemovingLastPathComponent() const { in CopyByRemovingLastPathComponent()
428 return FileSpec(llvm::sys::path::parent_path(current_path, m_style), in CopyByRemovingLastPathComponent()
433 void FileSpec::PrependPathComponent(llvm::StringRef component) { in PrependPathComponent()
443 void FileSpec::PrependPathComponent(const FileSpec &new_path) { in PrependPathComponent()
447 void FileSpec::AppendPathComponent(llvm::StringRef component) { in AppendPathComponent()
454 void FileSpec::AppendPathComponent(const FileSpec &new_path) { in AppendPathComponent()
458 bool FileSpec::RemoveLastPathComponent() { in RemoveLastPathComponent()
468 std::vector<llvm::StringRef> FileSpec::GetComponents() const { in GetComponents()
494 bool FileSpec::IsSourceImplementationFile() const { in IsSourceImplementationFile()
507 bool FileSpec::IsRelative() const { in IsRelative()
511 bool FileSpec::IsAbsolute() const { in IsAbsolute()
530 void FileSpec::MakeAbsolute(const FileSpec &dir) { in MakeAbsolute()
535 void llvm::format_provider<FileSpec>::format(const FileSpec &F, in format()