clang
10.0.0git
|
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... | |
virtual CommentHandler * | getCommentHandler () |
The returned CommentHandler will be added to the preprocessor if not null. More... | |
A set of callbacks to gather useful information while building a preamble.
Definition at line 255 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 750 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 751 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 749 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 753 of file PrecompiledPreamble.cpp.
Referenced by clang::PrecompiledPreamble::Build().
|
virtual |
The returned CommentHandler will be added to the preprocessor if not null.
Definition at line 756 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 752 of file PrecompiledPreamble.cpp.