clang
10.0.0git
|
#include "clang/Tooling/DependencyScanning/ModuleDepCollector.h"
Public Member Functions | |
ModuleDepCollector (CompilerInstance &I, DependencyConsumer &C) | |
void | attachToPreprocessor (Preprocessor &PP) override |
void | attachToASTReader (ASTReader &R) override |
![]() | |
virtual | ~DependencyCollector () |
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. More... | |
virtual void | finishedMainFile (DiagnosticsEngine &Diags) |
Called when the end of the main file is reached. More... | |
virtual bool | needSystemDependencies () |
Return true if system files should be passed to sawDependency(). More... | |
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. More... | |
Additional Inherited Members | |
![]() | |
bool | addDependency (StringRef Filename) |
Return true if the filename was added to the list of dependencies, false otherwise. More... | |
Definition at line 72 of file ModuleDepCollector.h.
ModuleDepCollector::ModuleDepCollector | ( | CompilerInstance & | I, |
DependencyConsumer & | C | ||
) |
Definition at line 126 of file ModuleDepCollector.cpp.
|
overridevirtual |
Reimplemented from clang::DependencyCollector.
Definition at line 135 of file ModuleDepCollector.cpp.
|
overridevirtual |
Reimplemented from clang::DependencyCollector.
Definition at line 131 of file ModuleDepCollector.cpp.
References clang::Preprocessor::addPPCallbacks().