[cfe-commits] r48496 - /cfe/trunk/include/clang/Rewrite/Rewriter.h

Ted Kremenek kremenek at apple.com
Tue Mar 18 12:43:13 PDT 2008


Author: kremenek
Date: Tue Mar 18 14:43:13 2008
New Revision: 48496

URL: http://llvm.org/viewvc/llvm-project?rev=48496&view=rev
Log:
Added method "getSourceMgr" to class Rewriter.

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=48496&r1=48495&r2=48496&view=diff

==============================================================================
--- cfe/trunk/include/clang/Rewrite/Rewriter.h (original)
+++ cfe/trunk/include/clang/Rewrite/Rewriter.h Tue Mar 18 14:43:13 2008
@@ -115,6 +115,7 @@
   explicit Rewriter() : SourceMgr(0) {}
   
   void setSourceMgr(SourceManager &SM) { SourceMgr = &SM; }
+  SourceManager& getSourceMgr() { return *SourceMgr; }
   
   /// isRewritable - Return true if this location is a raw file location, which
   /// is rewritable.  Locations from macros, etc are not rewritable.





More information about the cfe-commits mailing list