diff options
author | Alexander Kornienko <alexfh@google.com> | 2013-01-14 14:07:11 +0000 |
---|---|---|
committer | Alexander Kornienko <alexfh@google.com> | 2013-01-14 14:07:11 +0000 |
commit | ebc17b5b8727c0efc19680d39a554c46f6df76fe (patch) | |
tree | 868cca3622c4d6520cd8391fdd23b2ead311652b /clang/lib/AST/Comment.cpp | |
parent | e375a1f036dbcb74009383c06e1ac1496b7b3d21 (diff) | |
download | bcm5719-llvm-ebc17b5b8727c0efc19680d39a554c46f6df76fe.tar.gz bcm5719-llvm-ebc17b5b8727c0efc19680d39a554c46f6df76fe.zip |
Dump comments in -ast-dump.
http://llvm-reviews.chandlerc.com/D269
"Added dumping of declaration comments in ASTDumper. This required moving the
comment dumping code from CommentDumper so that the indentation is correct."
Patch by Philip Craig!
llvm-svn: 172409
Diffstat (limited to 'clang/lib/AST/Comment.cpp')
-rw-r--r-- | clang/lib/AST/Comment.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/clang/lib/AST/Comment.cpp b/clang/lib/AST/Comment.cpp index 361f8ac61c2..ea1a3f737af 100644 --- a/clang/lib/AST/Comment.cpp +++ b/clang/lib/AST/Comment.cpp @@ -32,20 +32,6 @@ const char *Comment::getCommentKindName() const { llvm_unreachable("Unknown comment kind!"); } -void Comment::dump() const { - // It is important that Comment::dump() is defined in a different TU than - // Comment::dump(raw_ostream, SourceManager). If both functions were defined - // in CommentDumper.cpp, that object file would be removed by linker because - // none of its functions are referenced by other object files, despite the - // LLVM_ATTRIBUTE_USED. - dump(llvm::errs(), NULL, NULL); -} - -void Comment::dump(const ASTContext &Context) const { - dump(llvm::errs(), &Context.getCommentCommandTraits(), - &Context.getSourceManager()); -} - namespace { struct good {}; struct bad {}; |