1 //===- EditedSource.h - Collection of source edits --------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_CLANG_EDIT_EDITSRECEIVER_H
11 #define LLVM_CLANG_EDIT_EDITSRECEIVER_H
13 #include "clang/Basic/LLVM.h"
14 #include "clang/Basic/SourceLocation.h"
15 #include "llvm/ADT/StringRef.h"
22 virtual ~EditsReceiver() = default;
24 virtual void insert(SourceLocation loc, StringRef text) = 0;
25 virtual void replace(CharSourceRange range, StringRef text) = 0;
27 /// By default it calls replace with an empty string.
28 virtual void remove(CharSourceRange range);
34 #endif // LLVM_CLANG_EDIT_EDITSRECEIVER_H