|
clang
5.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 | 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 void | HandleMacroDefined (const Token &MacroNameTok, const MacroDirective *MD) |
| Called for each macro defined in the Preamble. More... | |
A set of callbacks to gather useful information while building a preamble.
Definition at line 203 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 533 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 534 of file PrecompiledPreamble.cpp.
|
virtual |
Called for each macro defined in the Preamble.
NOTE: To allow more flexibility a custom PPCallbacks could probably be used instead, but having only this method allows a simpler API.
Definition at line 536 of file PrecompiledPreamble.cpp.
|
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 535 of file PrecompiledPreamble.cpp.
1.8.6