|
clang
5.0.0
|
Builds a depdenency file when attached to a Preprocessor (for includes) and ASTReader (for module imports), and writes it out at the end of processing a source file. More...
#include "clang/Frontend/Utils.h"
Public Member Functions | |
| void | AttachToASTReader (ASTReader &R) |
Static Public Member Functions | |
| static DependencyFileGenerator * | CreateAndAttachToPreprocessor (Preprocessor &PP, const DependencyOutputOptions &Opts) |
Builds a depdenency file when attached to a Preprocessor (for includes) and ASTReader (for module imports), and writes it out at the end of processing a source file.
Users should attach to the ast reader whenever a module is loaded.
| void DependencyFileGenerator::AttachToASTReader | ( | ASTReader & | R | ) |
Definition at line 252 of file DependencyFile.cpp.
References clang::ASTReader::addListener(), and I.
Referenced by clang::CompilerInstance::createPCHExternalASTSource().
|
static |
Definition at line 233 of file DependencyFile.cpp.
References clang::DependencyOutputOptions::AddMissingHeaderDeps, clang::ModuleMap::addModuleMapCallbacks(), clang::Preprocessor::addPPCallbacks(), Callback, clang::Preprocessor::getDiagnostics(), clang::Preprocessor::getHeaderSearchInfo(), clang::HeaderSearch::getModuleMap(), clang::DiagnosticsEngine::Report(), clang::Preprocessor::SetSuppressIncludeNotFoundError(), and clang::DependencyOutputOptions::Targets.
Referenced by clang::CompilerInstance::createPreprocessor().
1.8.6