From a776f953d7a5b6e5aab6e140e96dac1042285a4f Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 16 Apr 2008 04:28:52 +0000 Subject: [PATCH] make a method public. llvm-svn: 49770 --- clang/include/clang/Rewrite/Rewriter.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/clang/include/clang/Rewrite/Rewriter.h b/clang/include/clang/Rewrite/Rewriter.h index 261465ea5add..b3b53882c5a7 100644 --- a/clang/include/clang/Rewrite/Rewriter.h +++ b/clang/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; };