clang 20.0.0git
|
Collects the dependencies for imported modules into a directory. More...
#include "clang/Frontend/Utils.h"
Public Member Functions | |
ModuleDependencyCollector (std::string DestDir) | |
~ModuleDependencyCollector () override | |
StringRef | getDest () |
virtual bool | insertSeen (StringRef Filename) |
virtual void | addFile (StringRef Filename, StringRef FileDst={}) |
virtual void | addFileMapping (StringRef VPath, StringRef RPath) |
void | attachToPreprocessor (Preprocessor &PP) override |
void | attachToASTReader (ASTReader &R) override |
virtual void | writeFileMap () |
virtual bool | hasErrors () |
Public Member Functions inherited from clang::DependencyCollector | |
virtual | ~DependencyCollector () |
virtual void | attachToPreprocessor (Preprocessor &PP) |
virtual void | attachToASTReader (ASTReader &R) |
ArrayRef< std::string > | getDependencies () const |
virtual bool | sawDependency (StringRef Filename, bool FromModule, bool IsSystem, bool IsModuleFile, bool IsMissing) |
Called when a new file is seen. | |
virtual void | finishedMainFile (DiagnosticsEngine &Diags) |
Called when the end of the main file is reached. | |
virtual bool | needSystemDependencies () |
Return true if system files should be passed to sawDependency(). | |
virtual void | maybeAddDependency (StringRef Filename, bool FromModule, bool IsSystem, bool IsModuleFile, bool IsMissing) |
Add a dependency Filename if it has not been seen before and sawDependency() returns true. | |
Additional Inherited Members | |
Protected Member Functions inherited from clang::DependencyCollector | |
bool | addDependency (StringRef Filename) |
Return true if the filename was added to the list of dependencies, false otherwise. | |
Collects the dependencies for imported modules into a directory.
Users should attach to the AST reader whenever a module is loaded.
|
inline |
|
inlineoverride |
Definition at line 148 of file Utils.h.
References writeFileMap().
|
virtual |
Definition at line 179 of file ModuleDependencyCollector.cpp.
References Filename, and insertSeen().
|
inlinevirtual |
|
overridevirtual |
Reimplemented from clang::DependencyCollector.
Definition at line 83 of file ModuleDependencyCollector.cpp.
References clang::ASTReader::addListener(), and clang::ASTReader::getFileManager().
|
overridevirtual |
Reimplemented from clang::DependencyCollector.
Definition at line 88 of file ModuleDependencyCollector.cpp.
References clang::ModuleMap::addModuleMapCallbacks(), clang::Preprocessor::addPPCallbacks(), clang::Preprocessor::getHeaderSearchInfo(), clang::HeaderSearch::getModuleMap(), and clang::Preprocessor::getSourceManager().
|
inline |
Definition at line 150 of file Utils.h.
Referenced by writeFileMap().
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
Definition at line 113 of file ModuleDependencyCollector.cpp.
References getDest(), and isCaseSensitivePath().
Referenced by ~ModuleDependencyCollector().