clang  6.0.0svn
Public Member Functions | List of all members
clang::tooling::RefactoringResultConsumer Class Referenceabstract

An abstract interface that consumes the various refactoring results that can be produced by refactoring actions. More...

#include "clang/Tooling/Refactoring/RefactoringResultConsumer.h"

Public Member Functions

virtual ~RefactoringResultConsumer ()
 
virtual void handleError (llvm::Error Err)=0
 Handles an initation or an invication error. More...
 
virtual void handle (AtomicChanges SourceReplacements)
 Handles the source replacements that are produced by a refactoring action. More...
 
virtual void handle (SymbolOccurrences Occurrences)
 Handles the symbol occurrences that are found by an interactive refactoring action. More...
 

Detailed Description

An abstract interface that consumes the various refactoring results that can be produced by refactoring actions.

A valid refactoring result must be handled by a handle method.

Definition at line 25 of file RefactoringResultConsumer.h.

Constructor & Destructor Documentation

◆ ~RefactoringResultConsumer()

virtual clang::tooling::RefactoringResultConsumer::~RefactoringResultConsumer ( )
inlinevirtual

Definition at line 27 of file RefactoringResultConsumer.h.

References clang::Error, and handleError().

Member Function Documentation

◆ handle() [1/2]

virtual void clang::tooling::RefactoringResultConsumer::handle ( AtomicChanges  SourceReplacements)
inlinevirtual

Handles the source replacements that are produced by a refactoring action.

Definition at line 34 of file RefactoringResultConsumer.h.

◆ handle() [2/2]

virtual void clang::tooling::RefactoringResultConsumer::handle ( SymbolOccurrences  Occurrences)
inlinevirtual

Handles the symbol occurrences that are found by an interactive refactoring action.

Definition at line 40 of file RefactoringResultConsumer.h.

◆ handleError()

virtual void clang::tooling::RefactoringResultConsumer::handleError ( llvm::Error  Err)
pure virtual

Handles an initation or an invication error.

An initiation error typically has a DiagnosticError payload that describes why initation failed.

Referenced by ~RefactoringResultConsumer().


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