clang API Documentation
#include <FrontendActions.h>
Public Member Functions | |
bool | hasCodeCompletionSupport () const override |
Does this action support use with code completion? | |
Protected Member Functions | |
std::unique_ptr< ASTConsumer > | CreateASTConsumer (CompilerInstance &CI, StringRef InFile) override |
Create the AST consumer object for this action, if supported. | |
void | ExecuteAction () override |
Implement the ExecuteAction interface by running Sema on the already-initialized AST consumer. |
Definition at line 153 of file Frontend/FrontendActions.h.
std::unique_ptr< ASTConsumer > VerifyPCHAction::CreateASTConsumer | ( | CompilerInstance & | CI, |
StringRef | InFile | ||
) | [override, protected, 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.
Definition at line 383 of file Frontend/FrontendActions.cpp.
void VerifyPCHAction::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.
Reimplemented from clang::ASTFrontendAction.
Definition at line 387 of file Frontend/FrontendActions.cpp.
References clang::ASTReader::ARR_ConfigurationMismatch, clang::CompilerInstance::getASTContext(), clang::FrontendAction::getCompilerInstance(), clang::FrontendAction::getCurrentFile(), clang::CompilerInstance::getHeaderSearchOpts(), clang::CompilerInstance::getPreprocessor(), clang::CompilerInstance::getPreprocessorOpts(), clang::serialization::MK_PCH, clang::serialization::MK_Preamble, clang::PreprocessorOptions::PrecompiledPreambleBytes, and clang::HeaderSearchOptions::Sysroot.
bool clang::VerifyPCHAction::hasCodeCompletionSupport | ( | ) | const [inline, override, virtual] |
Does this action support use with code completion?
Reimplemented from clang::FrontendAction.
Definition at line 161 of file Frontend/FrontendActions.h.