diff options
author | Chris Lattner <sabre@nondot.org> | 2008-04-16 04:28:52 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-04-16 04:28:52 +0000 |
commit | 6837e38d4301d7874805ed4b24d8d14662789e10 (patch) | |
tree | 5d7839093acedba09ddae7bf8e6efc2198309a8c /include/clang/Rewrite | |
parent | 57df3b950061c73d13d3116f747e79d7955a216a (diff) |
make a method public.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49770 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Rewrite')
-rw-r--r-- | include/clang/Rewrite/Rewriter.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/clang/Rewrite/Rewriter.h b/include/clang/Rewrite/Rewriter.h index 261465ea5a..b3b53882c5 100644 --- a/include/clang/Rewrite/Rewriter.h +++ b/include/clang/Rewrite/Rewriter.h @@ -203,8 +203,14 @@ public: RewriteBuffers.find(FileID); return I == RewriteBuffers.end() ? 0 : &I->second; } -private: + + /// getEditBuffer - This is like getRewriteBufferFor, but always returns a + /// buffer, and allows you to write on it directly. This is useful if you + /// want efficient low-level access to apis for scribbling on one specific + /// FileID's buffer. RewriteBuffer &getEditBuffer(unsigned FileID); + +private: unsigned getLocationOffsetAndFileID(SourceLocation Loc, unsigned &FileID) const; }; |