From 4aa6d8f2e26c3762dba4ce8d4afea44c93d4712d Mon Sep 17 00:00:00 2001 From: Daniel Jasper Date: Tue, 8 Nov 2016 18:30:52 +0000 Subject: [PATCH] Revert "Remove now unnecessary FormatRewriterContext." This reverts commit r286262. I accidentally committed it without all of the changes. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@286264 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Index/CommentToXML.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Index/CommentToXML.cpp b/lib/Index/CommentToXML.cpp index fa3d029a36..4210b897c3 100644 --- a/lib/Index/CommentToXML.cpp +++ b/lib/Index/CommentToXML.cpp @@ -535,6 +535,7 @@ public: SimpleFormatContext &SFC, unsigned FUID) : FC(FC), Result(Str), Traits(Traits), SM(SM), + FormatRewriterContext(SFC), FormatInMemoryUniqueId(FUID) { } // Inline content. @@ -573,6 +574,7 @@ private: const CommandTraits &Traits; const SourceManager &SM; + SimpleFormatContext &FormatRewriterContext; unsigned FormatInMemoryUniqueId; }; -- 2.40.0