clang API Documentation

Public Member Functions | Protected Member Functions
clang::PreprocessorFrontendAction Class Reference

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

#include <FrontendAction.h>

Inheritance diagram for clang::PreprocessorFrontendAction:
Inheritance graph
[legend]
Collaboration diagram for clang::PreprocessorFrontendAction:
Collaboration graph
[legend]

List of all members.

Public Member Functions

bool usesPreprocessorOnly () const override
 Does this action only use the preprocessor?

Protected Member Functions

std::unique_ptr< ASTConsumerCreateASTConsumer (CompilerInstance &CI, StringRef InFile) override
 Provide a default implementation which returns aborts; this method should never be called by FrontendAction clients.

Detailed Description

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

Definition at line 255 of file FrontendAction.h.


Member Function Documentation

std::unique_ptr< ASTConsumer > PreprocessorFrontendAction::CreateASTConsumer ( CompilerInstance CI,
StringRef  InFile 
) [override, protected, virtual]

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

Implements clang::FrontendAction.

Definition at line 533 of file FrontendAction.cpp.

bool clang::PreprocessorFrontendAction::usesPreprocessorOnly ( ) const [inline, override, virtual]

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 263 of file FrontendAction.h.


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