Revert "Remove now unnecessary FormatRewriterContext."
authorDaniel Jasper <djasper@google.com>
Tue, 8 Nov 2016 18:30:52 +0000 (18:30 +0000)
committerDaniel Jasper <djasper@google.com>
Tue, 8 Nov 2016 18:30:52 +0000 (18:30 +0000)
This reverts commit r286262. I accidentally committed it without all of
the changes.

llvm-svn: 286264

clang/lib/Index/CommentToXML.cpp

index fa3d029..4210b89 100644 (file)
@@ -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;
 };