| 
    LLVM 22.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 23 of file FileCollector.h.
      
  | 
  default | 
      
  | 
  virtualdefault | 
References addDirectory(), addFile(), and file().
Definition at line 28 of file FileCollector.cpp.
References addDirectoryImpl(), assert(), llvm::vfs::getRealFileSystem(), and llvm::sys::fs::is_directory().
Referenced by ~FileCollectorBase().
      
  | 
  protectedpure virtual | 
Implemented in llvm::FileCollector.
Referenced by addDirectory().
Definition at line 21 of file FileCollector.cpp.
References addFileImpl(), markAsSeen(), and Mutex.
Referenced by llvm::FileCollector::addDirectoryImpl(), and ~FileCollectorBase().
      
  | 
  protectedpure virtual | 
Implemented in llvm::FileCollector.
Referenced by addFile().
      
  | 
  protected | 
Synchronizes access to internal data structures.
Definition at line 46 of file FileCollector.h.
Referenced by addFile(), llvm::FileCollector::copyFiles(), and llvm::FileCollector::writeMapping().
      
  | 
  protected | 
Tracks already seen files so they can be skipped.
Definition at line 49 of file FileCollector.h.
Referenced by markAsSeen().