]> granicus.if.org Git - clang/commitdiff
Added method "getSourceMgr" to class Rewriter.
authorTed Kremenek <kremenek@apple.com>
Tue, 18 Mar 2008 19:43:13 +0000 (19:43 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 18 Mar 2008 19:43:13 +0000 (19:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48496 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Rewrite/Rewriter.h

index 40886fe8bcdfa621d85160eccf5fa1f9da8495c1..ffa5db968c6eec6478c60289aae93459af5402a8 100644 (file)
@@ -115,6 +115,7 @@ public:
   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.