LLVM 20.0.0git
|
#include "llvm/Support/FileCollector.h"
Public Member Functions | |
FileCollectorBase () | |
virtual | ~FileCollectorBase () |
void | addFile (const Twine &file) |
void | addDirectory (const Twine &Dir) |
Protected Member Functions | |
bool | markAsSeen (StringRef Path) |
virtual void | addFileImpl (StringRef SrcPath)=0 |
virtual llvm::vfs::directory_iterator | addDirectoryImpl (const llvm::Twine &Dir, IntrusiveRefCntPtr< vfs::FileSystem > FS, std::error_code &EC)=0 |
Protected Attributes | |
std::mutex | Mutex |
Synchronizes access to internal data structures. | |
StringSet | Seen |
Tracks already seen files so they can be skipped. | |
Definition at line 22 of file FileCollector.h.
|
default |
|
virtualdefault |
Definition at line 28 of file FileCollector.cpp.
References addDirectoryImpl(), assert(), llvm::vfs::getRealFileSystem(), and llvm::sys::fs::is_directory().
|
protectedpure virtual |
Implemented in llvm::FileCollector.
Referenced by addDirectory().
Definition at line 21 of file FileCollector.cpp.
References addFileImpl(), and markAsSeen().
Referenced by llvm::FileCollector::addDirectoryImpl().
|
protectedpure virtual |
Implemented in llvm::FileCollector.
Referenced by addFile().
Definition at line 31 of file FileCollector.h.
References llvm::StringSet< AllocatorTy >::insert(), and Seen.
Referenced by addFile().
|
protected |
Synchronizes access to internal data structures.
Definition at line 45 of file FileCollector.h.
|
protected |
Tracks already seen files so they can be skipped.
Definition at line 48 of file FileCollector.h.
Referenced by markAsSeen().