class RewriteIncludesAction

Declaration

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

Description

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

Declared at: clang/include/clang/Rewrite/Frontend/FrontendActions.h:75

Inherits from: PreprocessorFrontendAction

Member Variables

private std::shared_ptr<raw_ostream> OutputStream

Method Overview

Inherited from PreprocessorFrontendAction:

Inherited from FrontendAction:

Methods

bool BeginSourceFileAction(
    clang::CompilerInstance& CI)

Description

Callback at the start of processing a single input.

Declared at: clang/include/clang/Rewrite/Frontend/FrontendActions.h:79

Parameters

clang::CompilerInstance& CI

Returns

True on success; on failure ExecutionAction() and EndSourceFileAction() will not be called.

void ExecuteAction()

Description

Callback to run the program action, using the initialized compiler instance. This is guaranteed to only be called between BeginSourceFileAction() and EndSourceFileAction().

Declared at: clang/include/clang/Rewrite/Frontend/FrontendActions.h:80