aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/CommentDumper.cpp
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2012-10-25 18:16:02 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2012-10-25 18:16:02 +0000
commit3304c436130edcc0e4c500a48f951249e242d9d0 (patch)
tree045af7a491c10c6843c7952f06891b0d9bf13841 /lib/AST/CommentDumper.cpp
parentaf879c0222791b5e026653a834df1c5c1fb41552 (diff)
CommentDumper: reorder members and add a comment.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166705 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/CommentDumper.cpp')
-rw-r--r--lib/AST/CommentDumper.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/AST/CommentDumper.cpp b/lib/AST/CommentDumper.cpp
index 18d3406217..19d24b2f3a 100644
--- a/lib/AST/CommentDumper.cpp
+++ b/lib/AST/CommentDumper.cpp
@@ -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 {