From 4c535ace52492cf2b5fdf97752e76ed2991f3ef4 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Tue, 18 Mar 2008 19:43:13 +0000 Subject: [PATCH] Added method "getSourceMgr" to class Rewriter. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48496 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Rewrite/Rewriter.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/clang/Rewrite/Rewriter.h b/include/clang/Rewrite/Rewriter.h index 40886fe8bc..ffa5db968c 100644 --- a/include/clang/Rewrite/Rewriter.h +++ b/include/clang/Rewrite/Rewriter.h @@ -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. -- 2.40.0