LLVM
15.0.0git
|
Public Member Functions | |
FileCollectorFileSystem (IntrusiveRefCntPtr< vfs::FileSystem > FS, std::shared_ptr< FileCollector > Collector) | |
llvm::ErrorOr< llvm::vfs::Status > | status (const Twine &Path) override |
Get the status of the entry at Path , if one exists. More... | |
llvm::ErrorOr< std::unique_ptr< llvm::vfs::File > > | openFileForRead (const Twine &Path) override |
Get a File object for the file at Path , if one exists. More... | |
llvm::vfs::directory_iterator | dir_begin (const llvm::Twine &Dir, std::error_code &EC) override |
Get a directory_iterator for Dir . More... | |
std::error_code | getRealPath (const Twine &Path, SmallVectorImpl< char > &Output) const override |
Gets real path of Path e.g. More... | |
std::error_code | isLocal (const Twine &Path, bool &Result) override |
Is the file mounted on a local filesystem? More... | |
llvm::ErrorOr< std::string > | getCurrentWorkingDirectory () const override |
Get the working directory of this file system. More... | |
std::error_code | setCurrentWorkingDirectory (const llvm::Twine &Path) override |
Set the working directory. More... | |
![]() | |
virtual | ~FileSystem () |
llvm::ErrorOr< std::unique_ptr< llvm::MemoryBuffer > > | getBufferForFile (const Twine &Name, int64_t FileSize=-1, bool RequiresNullTerminator=true, bool IsVolatile=false) |
This is a convenience method that opens a file, gets its content and then closes the file. More... | |
bool | exists (const Twine &Path) |
Check whether a file exists. Provided for convenience. More... | |
virtual std::error_code | makeAbsolute (SmallVectorImpl< char > &Path) const |
Make Path an absolute path. More... | |
void | print (raw_ostream &OS, PrintType Type=PrintType::Contents, unsigned IndentLevel=0) const |
LLVM_DUMP_METHOD void | dump () const |
![]() | |
void | Retain () const |
void | Release () const |
Additional Inherited Members | |
![]() | |
enum | PrintType { PrintType::Summary, PrintType::Contents, PrintType::RecursiveContents } |
![]() | |
virtual void | printImpl (raw_ostream &OS, PrintType Type, unsigned IndentLevel) const |
void | printIndent (raw_ostream &OS, unsigned IndentLevel) const |
![]() | |
ThreadSafeRefCountedBase ()=default | |
ThreadSafeRefCountedBase (const ThreadSafeRefCountedBase &) | |
ThreadSafeRefCountedBase & | operator= (const ThreadSafeRefCountedBase &)=delete |
~ThreadSafeRefCountedBase () | |
Definition at line 255 of file FileCollector.cpp.
|
inlineexplicit |
Definition at line 257 of file FileCollector.cpp.
|
inlineoverridevirtual |
Get a directory_iterator for Dir
.
Implements llvm::vfs::FileSystem.
Definition at line 276 of file FileCollector.cpp.
References Collector, and llvm::X86AS::FS.
|
inlineoverridevirtual |
Get the working directory of this file system.
Implements llvm::vfs::FileSystem.
Definition at line 296 of file FileCollector.cpp.
References llvm::X86AS::FS.
|
inlineoverridevirtual |
Gets real path of Path
e.g.
collapse all . and .. patterns, resolve symlinks. For real file system, this uses llvm::sys::fs::real_path
. This returns errc::operation_not_permitted if not implemented by subclass.
Reimplemented from llvm::vfs::FileSystem.
Definition at line 281 of file FileCollector.cpp.
References Collector, and llvm::X86AS::FS.
|
inlineoverridevirtual |
Is the file mounted on a local filesystem?
Reimplemented from llvm::vfs::FileSystem.
Definition at line 292 of file FileCollector.cpp.
References llvm::X86AS::FS.
|
inlineoverridevirtual |
Get a File
object for the file at Path
, if one exists.
Implements llvm::vfs::FileSystem.
Definition at line 269 of file FileCollector.cpp.
References Collector, and llvm::X86AS::FS.
|
inlineoverridevirtual |
Set the working directory.
This will affect all following operations on this file system and may propagate down for nested file systems.
Implements llvm::vfs::FileSystem.
Definition at line 300 of file FileCollector.cpp.
References llvm::X86AS::FS.
|
inlineoverridevirtual |
Get the status of the entry at Path
, if one exists.
Implements llvm::vfs::FileSystem.
Definition at line 261 of file FileCollector.cpp.
References Collector, and llvm::X86AS::FS.