A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://clang.llvm.org/doxygen/classclang_1_1ASTMergeAction.html below:

clang: clang::ASTMergeAction Class Reference

Frontend action adaptor that merges ASTs together. More...

#include "clang/Frontend/FrontendActions.h"

Frontend action adaptor that merges ASTs together.

This action takes an existing AST file and "merges" it into the AST context, producing a merged context. This action is an action adaptor, which forwards most of its calls to another action that will consume the merged context.

Definition at line 246 of file FrontendActions.h.

◆ ASTMergeAction() ◆ ~ASTMergeAction() ASTMergeAction::~ASTMergeAction ( ) override

Definition at line 93 of file ASTMerge.cpp.

◆ BeginSourceFileAction() ◆ CreateASTConsumer()

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.

Parameters
Returns
The new AST consumer, or null on failure.

Implements clang::FrontendAction.

Definition at line 20 of file ASTMerge.cpp.

◆ EndSourceFileAction() void ASTMergeAction::EndSourceFileAction ( ) overrideprotectedvirtual

Callback at the end of processing a single input.

This is guaranteed to only be called following a successful call to BeginSourceFileAction (and BeginSourceFile).

Reimplemented from clang::FrontendAction.

Definition at line 83 of file ASTMerge.cpp.

◆ ExecuteAction() void ASTMergeAction::ExecuteAction ( ) overrideprotectedvirtual

Callback to run the program action, using the initialized compiler instance.

This is guaranteed to only be called between BeginSourceFileAction() and EndSourceFileAction().

Implements clang::FrontendAction.

Definition at line 33 of file ASTMerge.cpp.

References clang::DiagnosticConsumer::BeginSourceFile(), D, clang::DeclContext::decls(), clang::DiagnosticConsumer::EndSourceFile(), clang::FormatASTNodeDiagnosticArgument(), clang::CompilerInstance::getASTConsumer(), clang::TranslationUnitDecl::getASTContext(), clang::CompilerInstance::getASTContext(), clang::DiagnosticsEngine::getClient(), clang::FrontendAction::getCompilerInstance(), clang::DiagnosticsEngine::getDiagnosticIDs(), clang::CompilerInstance::getDiagnosticOpts(), clang::CompilerInstance::getDiagnostics(), clang::CompilerInstance::getFileManager(), clang::CompilerInstance::getFileSystemOpts(), clang::CompilerInstance::getHeaderSearchOptsPtr(), clang::ASTContext::getLangOpts(), clang::CompilerInstance::getPCHContainerReader(), clang::ASTContext::getTranslationUnitDecl(), clang::ASTConsumer::HandleTopLevelDecl(), clang::ASTImporter::Import(), clang::ASTUnit::LoadEverything, clang::ASTUnit::LoadFromASTFile(), and clang::DiagnosticsEngine::SetArgToStringFn().

◆ getTranslationUnitKind() ◆ hasASTFileSupport() bool ASTMergeAction::hasASTFileSupport ( ) const overridevirtual ◆ hasCodeCompletionSupport() bool ASTMergeAction::hasCodeCompletionSupport ( ) const overridevirtual ◆ hasPCHSupport() bool ASTMergeAction::hasPCHSupport ( ) const overridevirtual ◆ usesPreprocessorOnly() bool ASTMergeAction::usesPreprocessorOnly ( ) const overridevirtual

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 96 of file ASTMerge.cpp.

The documentation for this class was generated from the following files:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4