[cfe-commits] r43883 - /cfe/trunk/include/clang/Rewrite/Rewriter.h
Chris Lattner
sabre at nondot.org
Wed Nov 7 21:42:26 PST 2007
Author: lattner
Date: Wed Nov 7 23:42:25 2007
New Revision: 43883
URL: http://llvm.org/viewvc/llvm-project?rev=43883&view=rev
Log:
abstract out buffer type a bit better
Modified:
cfe/trunk/include/clang/Rewrite/Rewriter.h
Modified: cfe/trunk/include/clang/Rewrite/Rewriter.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Rewrite/Rewriter.h?rev=43883&r1=43882&r2=43883&view=diff
==============================================================================
--- cfe/trunk/include/clang/Rewrite/Rewriter.h (original)
+++ cfe/trunk/include/clang/Rewrite/Rewriter.h Wed Nov 7 23:42:25 2007
@@ -55,11 +55,12 @@
/// 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(); }
More information about the cfe-commits
mailing list