clang  6.0.0svn
Public Member Functions | List of all members
clang::edit::EditsReceiver Class Referenceabstract

#include "clang/Edit/EditsReceiver.h"

Public Member Functions

virtual ~EditsReceiver ()
 
virtual void insert (SourceLocation loc, StringRef text)=0
 
virtual void replace (CharSourceRange range, StringRef text)=0
 
virtual void remove (CharSourceRange range)
 By default it calls replace with an empty string. More...
 

Detailed Description

Definition at line 21 of file EditsReceiver.h.

Constructor & Destructor Documentation

◆ ~EditsReceiver()

virtual clang::edit::EditsReceiver::~EditsReceiver ( )
inlinevirtual

Definition at line 23 of file EditsReceiver.h.

References insert(), replace(), and clang::comments::tok::text.

Member Function Documentation

◆ insert()

virtual void clang::edit::EditsReceiver::insert ( SourceLocation  loc,
StringRef  text 
)
pure virtual

Referenced by applyRewrite(), and ~EditsReceiver().

◆ remove()

void EditsReceiver::remove ( CharSourceRange  range)
virtual

By default it calls replace with an empty string.

Definition at line 22 of file EditedSource.cpp.

References clang::SourceLocation::getRawEncoding(), clang::Lexer::getSpelling(), and replace().

Referenced by applyRewrite().

◆ replace()

virtual void clang::edit::EditsReceiver::replace ( CharSourceRange  range,
StringRef  text 
)
pure virtual

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