]> granicus.if.org Git - clang/commitdiff
make a method public.
authorChris Lattner <sabre@nondot.org>
Wed, 16 Apr 2008 04:28:52 +0000 (04:28 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 16 Apr 2008 04:28:52 +0000 (04:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49770 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Rewrite/Rewriter.h

index 261465ea5add8f7cdca2a6a75131d17b6c9af72b..b3b53882c5a73cf0c9f65d0f3ca51463a9880901 100644 (file)
@@ -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;
 };