clang
6.0.0
|
A set of callbacks to gather useful information while building a preamble. More...
#include "clang/Frontend/PrecompiledPreamble.h"
Public Member Functions | |
virtual | ~PreambleCallbacks ()=default |
virtual void | BeforeExecute (CompilerInstance &CI) |
Called before FrontendAction::BeginSourceFile. More... | |
virtual void | AfterExecute (CompilerInstance &CI) |
Called after FrontendAction::Execute(), but before FrontendAction::EndSourceFile(). More... | |
virtual void | AfterPCHEmitted (ASTWriter &Writer) |
Called after PCH has been emitted. More... | |
virtual void | HandleTopLevelDecl (DeclGroupRef DG) |
Called for each TopLevelDecl. More... | |
virtual std::unique_ptr< PPCallbacks > | createPPCallbacks () |
Creates wrapper class for PPCallbacks so we can also process information about includes that are inside of a preamble. More... | |
A set of callbacks to gather useful information while building a preamble.
Definition at line 249 of file PrecompiledPreamble.h.
|
virtualdefault |
|
virtual |
Called after FrontendAction::Execute(), but before FrontendAction::EndSourceFile().
Can be used to transfer ownership of various CompilerInstance fields before they are destroyed.
Definition at line 720 of file PrecompiledPreamble.cpp.
Referenced by clang::PrecompiledPreamble::Build().
|
virtual |
Called after PCH has been emitted.
Writer
may be used to retrieve information about AST, serialized in PCH.
Definition at line 721 of file PrecompiledPreamble.cpp.
|
virtual |
Called before FrontendAction::BeginSourceFile.
Can be used to store references to various CompilerInstance fields (e.g. SourceManager) that may be interesting to the consumers of other callbacks.
Definition at line 719 of file PrecompiledPreamble.cpp.
Referenced by clang::PrecompiledPreamble::Build().
|
virtual |
Creates wrapper class for PPCallbacks so we can also process information about includes that are inside of a preamble.
Definition at line 723 of file PrecompiledPreamble.cpp.
Referenced by clang::PrecompiledPreamble::Build().
|
virtual |
Called for each TopLevelDecl.
NOTE: To allow more flexibility a custom ASTConsumer could probably be used instead, but having only this method allows a simpler API.
Definition at line 722 of file PrecompiledPreamble.cpp.