clang API Documentation
#include <FrontendActions.h>


Protected Member Functions | |
| void | ExecuteAction () |
| virtual ASTConsumer * | CreateASTConsumer (CompilerInstance &, StringRef) |
| virtual bool | usesPreprocessorOnly () const |
Definition at line 166 of file Frontend/FrontendActions.h.
| virtual ASTConsumer* clang::PrintPreambleAction::CreateASTConsumer | ( | CompilerInstance & | CI, |
| StringRef | InFile | ||
| ) | [inline, protected, virtual] |
CreateASTConsumer - Create the AST consumer object for this action, if supported.
This routine is called as part of
| CI | - The current compiler instance, provided as a convenience, |
| InFile | - The current input file, provided as a convenience, |
Implements clang::FrontendAction.
Definition at line 169 of file Frontend/FrontendActions.h.
| void PrintPreambleAction::ExecuteAction | ( | ) | [protected, virtual] |
ExecuteAction - Callback to run the program action, using the initialized compiler instance.
This routine is guaranteed to only be called between
Implements clang::FrontendAction.
Definition at line 470 of file Frontend/FrontendActions.cpp.
References clang::Lexer::ComputePreamble(), clang::FileManager::getBufferForFile(), clang::FrontendAction::getCompilerInstance(), clang::FrontendAction::getCurrentFile(), clang::FrontendAction::getCurrentFileKind(), clang::CompilerInstance::getFileManager(), clang::CompilerInstance::getLangOpts(), clang::IK_Asm, clang::IK_AST, clang::IK_C, clang::IK_CUDA, clang::IK_CXX, clang::IK_LLVM_IR, clang::IK_None, clang::IK_ObjC, clang::IK_ObjCXX, clang::IK_OpenCL, clang::IK_PreprocessedC, clang::IK_PreprocessedCXX, clang::IK_PreprocessedObjC, and clang::IK_PreprocessedObjCXX.
| virtual bool clang::PrintPreambleAction::usesPreprocessorOnly | ( | ) | const [inline, protected, virtual] |
usesPreprocessorOnly - Does this action only use the preprocessor? If so no AST context will be created and this action will be invalid with AST file inputs.
Implements clang::FrontendAction.
Definition at line 173 of file Frontend/FrontendActions.h.