clang 20.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::Execute. | |
virtual void | AfterExecute (CompilerInstance &CI) |
Called after FrontendAction::Execute(), but before FrontendAction::EndSourceFile(). | |
virtual void | AfterPCHEmitted (ASTWriter &Writer) |
Called after PCH has been emitted. | |
virtual void | HandleTopLevelDecl (DeclGroupRef DG) |
Called for each TopLevelDecl. | |
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. | |
virtual CommentHandler * | getCommentHandler () |
The returned CommentHandler will be added to the preprocessor if not null. | |
virtual bool | shouldSkipFunctionBody (Decl *D) |
Determines which function bodies are parsed, by default skips everything. | |
A set of callbacks to gather useful information while building a preamble.
Definition at line 211 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 826 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 827 of file PrecompiledPreamble.cpp.
|
virtual |
Called before FrontendAction::Execute.
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 825 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.
Called after BeforeExecute.
Definition at line 829 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 832 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 828 of file PrecompiledPreamble.cpp.
Determines which function bodies are parsed, by default skips everything.
Only used if FrontendOpts::SkipFunctionBodies is true. See ASTConsumer::shouldSkipFunctionBody.
Definition at line 239 of file PrecompiledPreamble.h.