class SyntaxOnlyAction

Declaration

class SyntaxOnlyAction : public ASTFrontendAction { /* full declaration omitted */ };

Description

Abstract base class to use for AST consumer-based frontend actions.

Declared at: clang/include/clang/Frontend/FrontendActions.h:180

Inherits from: ASTFrontendAction

Member Variables

Method Overview

Inherited from ASTFrontendAction:

Inherited from FrontendAction:

Methods

std::unique_ptr<ASTConsumer> CreateASTConsumer(
    clang::CompilerInstance& CI,
    llvm::StringRef InFile)

Description

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.

Declared at: clang/include/clang/Frontend/FrontendActions.h:182

Parameters

clang::CompilerInstance& CI
- The current compiler instance, provided as a convenience, see getCompilerInstance().
llvm::StringRef InFile
- The current input file, provided as a convenience, see getCurrentFile().

Returns

The new AST consumer, or null on failure.

bool hasCodeCompletionSupport() const

Description

Does this action support use with code completion?

Declared at: clang/include/clang/Frontend/FrontendActions.h:187

~SyntaxOnlyAction()

Declared at: clang/include/clang/Frontend/FrontendActions.h:186