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
- protected std::unique_ptr<ASTConsumer> CreateASTConsumer(clang::CompilerInstance & CI, llvm::StringRef InFile)
- public bool usesPreprocessorOnly() const
Inherited from FrontendAction:
- protected BeginInvocation
- public BeginSourceFile
- protected BeginSourceFileAction
- protected CreateASTConsumer
- public EndSourceFile
- protected EndSourceFileAction
- public Execute
- protected ExecuteAction
- public PrepareToExecute
- protected PrepareToExecuteAction
- public getCompilerInstance
- public getCurrentASTUnit
- public getCurrentFile
- public getCurrentFileKind
- public getCurrentFileOrBufferName
- public getCurrentInput
- public getCurrentModule
- public getTranslationUnitKind
- public hasASTFileSupport
- public hasCodeCompletionSupport
- public hasIRSupport
- public hasPCHSupport
- public isCurrentFileAST
- public isModelParsingAction
- public setCompilerInstance
- public setCurrentInput
- protected shouldEraseOutputFiles
- public takeCurrentASTUnit
- public usesPreprocessorOnly
Methods
¶std::unique_ptr<ASTConsumer> CreateASTConsumer(
clang::CompilerInstance& CI,
llvm::StringRef InFile)
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
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