r286264 - Revert "Remove now unnecessary FormatRewriterContext."

Daniel Jasper via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 8 10:30:52 PST 2016


Author: djasper
Date: Tue Nov  8 12:30:52 2016
New Revision: 286264

URL: http://llvm.org/viewvc/llvm-project?rev=286264&view=rev
Log:
Revert "Remove now unnecessary FormatRewriterContext."

This reverts commit r286262. I accidentally committed it without all of
the changes.

Modified:
    cfe/trunk/lib/Index/CommentToXML.cpp

Modified: cfe/trunk/lib/Index/CommentToXML.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Index/CommentToXML.cpp?rev=286264&r1=286263&r2=286264&view=diff
==============================================================================
--- cfe/trunk/lib/Index/CommentToXML.cpp (original)
+++ cfe/trunk/lib/Index/CommentToXML.cpp Tue Nov  8 12:30:52 2016
@@ -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;
 };
 




More information about the cfe-commits mailing list