class ModifyAction

Declaration

class ModifyAction : public WrapperFrontendAction { /* full declaration omitted */ };

Description

A frontend action which simply wraps some other runtime-specified frontend action. Deriving from this class allows an action to inject custom logic around some existing action's behavior. It implements every virtual method in the FrontendAction interface by forwarding to the wrapped action.

Declared at: clang/include/clang/ARCMigrate/ARCMTActions.h:27

Inherits from: WrapperFrontendAction

Member Variables

Inherited from WrapperFrontendAction:

protected WrappedAction

Method Overview

Inherited from WrapperFrontendAction:

Inherited from FrontendAction:

Methods

bool BeginInvocation(clang::CompilerInstance& CI)

Description

Callback before starting processing a single input, giving the opportunity to modify the CompilerInvocation or do some other action before BeginSourceFileAction is called.

Declared at: clang/include/clang/ARCMigrate/ARCMTActions.h:29

Parameters

clang::CompilerInstance& CI

Returns

True on success; on failure BeginSourceFileAction(), ExecuteAction() and EndSourceFileAction() will not be called.

ModifyAction(
    std::unique_ptr<FrontendAction> WrappedAction)

Declared at: clang/include/clang/ARCMigrate/ARCMTActions.h:32

Parameters

std::unique_ptr<FrontendAction> WrappedAction