class IncrementalAction

Declaration

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

Description

A custom action enabling the incremental processing functionality. The usual \p FrontendAction expects one call to ExecuteAction and once it sees a call to \p EndSourceFile it deletes some of the important objects such as \p Preprocessor and \p Sema assuming no further input will come. \p IncrementalAction ensures it keep its underlying action's objects alive as long as the \p IncrementalParser needs them.

Declared at: clang/lib/Interpreter/IncrementalParser.cpp:43

Inherits from: WrapperFrontendAction

Member Variables

private bool IsTerminating = false

Inherited from WrapperFrontendAction:

protected WrappedAction

Method Overview

Inherited from WrapperFrontendAction:

Inherited from FrontendAction:

Methods

void EndSourceFile()

Description

Perform any per-file post processing, deallocate per-file objects, and run statistics and output file cleanup code.

Declared at: clang/lib/Interpreter/IncrementalParser.cpp:109

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/lib/Interpreter/IncrementalParser.cpp:84

void FinalizeAction()

Declared at: clang/lib/Interpreter/IncrementalParser.cpp:115

IncrementalAction(clang::CompilerInstance& CI,
                  llvm::LLVMContext& LLVMCtx,
                  llvm::Error& Err)

Declared at: clang/lib/Interpreter/IncrementalParser.cpp:48

Parameters

clang::CompilerInstance& CI
llvm::LLVMContext& LLVMCtx
llvm::Error& Err

clang::TranslationUnitKind
getTranslationUnitKind()

Description

For AST-based actions, the kind of translation unit we're handling.

Declared at: clang/lib/Interpreter/IncrementalParser.cpp:81

clang::FrontendAction* getWrapped() const

Declared at: clang/lib/Interpreter/IncrementalParser.cpp:80