diff options
author | Chris Lattner <sabre@nondot.org> | 2007-11-08 05:42:25 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-11-08 05:42:25 +0000 |
commit | cdd808e2af9f92ef406065c4855ac72d121dbcda (patch) | |
tree | cf6c976777dd5a3764d4bb6c1464c922fb0decb3 /include/clang/Rewrite/Rewriter.h | |
parent | 28d1fe893914f429495edb7ef45853ad052bf698 (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.h | 5 |
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(); } |