clang API Documentation
#include <FrontendAction.h>
Public Member Functions | |
std::unique_ptr< ASTConsumer > | CreateASTConsumer (CompilerInstance &CI, StringRef InFile) override=0 |
Create the AST consumer object for this action, if supported. | |
virtual bool | ParseArgs (const CompilerInstance &CI, const std::vector< std::string > &arg)=0 |
Parse the given plugin command line arguments. |
Definition at line 238 of file FrontendAction.h.
std::unique_ptr<ASTConsumer> clang::PluginASTAction::CreateASTConsumer | ( | CompilerInstance & | CI, |
StringRef | InFile | ||
) | [override, pure virtual] |
Create the AST consumer object for this action, if supported.
This routine is called as part of BeginSourceFile(), which will fail if the AST consumer cannot be created. This will not be called if the action has indicated that it only uses the preprocessor.
CI | - The current compiler instance, provided as a convenience, see getCompilerInstance(). |
InFile | - The current input file, provided as a convenience, see getCurrentFile(). |
Implements clang::FrontendAction.
virtual bool clang::PluginASTAction::ParseArgs | ( | const CompilerInstance & | CI, |
const std::vector< std::string > & | arg | ||
) | [pure virtual] |
Parse the given plugin command line arguments.
CI | - The compiler instance, for use in reporting diagnostics. |