clang API Documentation
Abstract base class to use for AST consumer-based frontend actions. More...
#include <FrontendAction.h>
Public Member Functions | |
ASTFrontendAction () | |
bool | usesPreprocessorOnly () const override |
Does this action only use the preprocessor? | |
Protected Member Functions | |
void | ExecuteAction () override |
Implement the ExecuteAction interface by running Sema on the already-initialized AST consumer. |
Abstract base class to use for AST consumer-based frontend actions.
Definition at line 224 of file FrontendAction.h.
clang::ASTFrontendAction::ASTFrontendAction | ( | ) | [inline] |
Definition at line 234 of file FrontendAction.h.
void ASTFrontendAction::ExecuteAction | ( | ) | [override, protected, virtual] |
Implement the ExecuteAction interface by running Sema on the already-initialized AST consumer.
This will also take care of instantiating a code completion consumer if the user requested it and the action supports it.
Implements clang::FrontendAction.
Reimplemented in clang::VerifyPCHAction, clang::DumpModuleInfoAction, and clang::CodeGenAction.
Definition at line 507 of file FrontendAction.cpp.
References clang::FrontendOptions::CodeCompletionAt, clang::CompilerInstance::createCodeCompletionConsumer(), clang::CompilerInstance::createSema(), clang::ParsedSourceLocation::FileName, clang::CompilerInstance::getCodeCompletionConsumer(), clang::FrontendAction::getCompilerInstance(), clang::CompilerInstance::getFrontendOpts(), clang::CompilerInstance::getSema(), clang::FrontendAction::getTranslationUnitKind(), clang::CompilerInstance::hasCodeCompletionConsumer(), clang::FrontendAction::hasCodeCompletionSupport(), clang::CompilerInstance::hasPreprocessor(), clang::CompilerInstance::hasSema(), clang::ParseAST(), clang::FrontendOptions::ShowStats, and clang::FrontendOptions::SkipFunctionBodies.
bool clang::ASTFrontendAction::usesPreprocessorOnly | ( | ) | const [inline, override, virtual] |
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 235 of file FrontendAction.h.