class PreprocessorFrontendAction

Declaration

class PreprocessorFrontendAction : public FrontendAction { /* full declaration omitted */ };

Description

Abstract base class to use for preprocessor-based frontend actions.

Declared at: clang/include/clang/Frontend/FrontendAction.h:288

Inherits from: FrontendAction

Member Variables

Method Overview

Inherited from FrontendAction:

Methods

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

Description

Provide a default implementation which returns aborts; this method should never be called by FrontendAction clients.

Declared at: clang/include/clang/Frontend/FrontendAction.h:292

Parameters

clang::CompilerInstance& CI
llvm::StringRef InFile

bool usesPreprocessorOnly() const

Description

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.

Declared at: clang/include/clang/Frontend/FrontendAction.h:296