aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Rewrite/Rewriter.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-11-08 05:42:25 +0000
committerChris Lattner <sabre@nondot.org>2007-11-08 05:42:25 +0000
commitcdd808e2af9f92ef406065c4855ac72d121dbcda (patch)
treecf6c976777dd5a3764d4bb6c1464c922fb0decb3 /include/clang/Rewrite/Rewriter.h
parent28d1fe893914f429495edb7ef45853ad052bf698 (diff)
abstract out buffer type a bit better
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43883 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Rewrite/Rewriter.h')
-rw-r--r--include/clang/Rewrite/Rewriter.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/clang/Rewrite/Rewriter.h b/include/clang/Rewrite/Rewriter.h
index 8e8988308c..2079938752 100644
--- a/include/clang/Rewrite/Rewriter.h
+++ b/include/clang/Rewrite/Rewriter.h
@@ -55,11 +55,12 @@ class RewriteBuffer {
/// Buffer - This is the actual buffer itself. Note that using a vector or
/// string is a horribly inefficient way to do this, we should use a rope
/// instead.
- std::vector<char> Buffer;
+ typedef std::vector<char> BufferTy;
+ BufferTy Buffer;
public:
- typedef std::vector<char>::const_iterator iterator;
+ typedef BufferTy::const_iterator iterator;
iterator begin() const { return Buffer.begin(); }
iterator end() const { return Buffer.end(); }