]> granicus.if.org Git - clang/commitdiff
CommentDumper: reorder members and add a comment.
authorDmitri Gribenko <gribozavr@gmail.com>
Thu, 25 Oct 2012 18:16:02 +0000 (18:16 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Thu, 25 Oct 2012 18:16:02 +0000 (18:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166705 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/CommentDumper.cpp

index 18d3406217bf2d372411811f6bcfe061fbbedaf8..19d24b2f3a0329fffe9b07910c0132aa118c4bf5 100644 (file)
@@ -18,17 +18,18 @@ class CommentDumper: public comments::ConstCommentVisitor<CommentDumper> {
   raw_ostream &OS;
   const CommandTraits *Traits;
   const SourceManager *SM;
-  unsigned IndentLevel;
+
+  /// The \c FullComment parent of the comment being dumped.
   const FullComment *FC;
-  
+
+  unsigned IndentLevel;
+
 public:
   CommentDumper(raw_ostream &OS,
                 const CommandTraits *Traits,
                 const SourceManager *SM,
-                const FullComment * FC) :
-      OS(OS), Traits(Traits), SM(SM), IndentLevel(0),
-      FC(FC)
-  
+                const FullComment *FC) :
+      OS(OS), Traits(Traits), SM(SM), FC(FC), IndentLevel(0)
   { }
 
   void dumpIndent() const {