summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/CommentLexer.cpp
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2018-08-15 20:32:06 +0000
committerStephen Kelly <steveire@gmail.com>2018-08-15 20:32:06 +0000
commit3124ce724a2d76f8817ba025e9542126de309924 (patch)
treed5039bbd76f07f5ccfb88c33917a6b5186370e0b /clang/lib/AST/CommentLexer.cpp
parent942cb7b3f8ea12a26f28be3d647b8c789a10a002 (diff)
downloadbcm5719-llvm-3124ce724a2d76f8817ba025e9542126de309924.tar.gz
bcm5719-llvm-3124ce724a2d76f8817ba025e9542126de309924.zip
Add a newline to SourceLocation dump output
Summary: Migrate callers to print(). dump() should be useful to downstreams and third parties as a debugging aid. Everyone trips up on this and creates confusing output. Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D50661 llvm-svn: 339810
Diffstat (limited to 'clang/lib/AST/CommentLexer.cpp')
-rw-r--r--clang/lib/AST/CommentLexer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/CommentLexer.cpp b/clang/lib/AST/CommentLexer.cpp
index 8d401ff5c7e..c43275318dd 100644
--- a/clang/lib/AST/CommentLexer.cpp
+++ b/clang/lib/AST/CommentLexer.cpp
@@ -21,7 +21,7 @@ namespace comments {
void Token::dump(const Lexer &L, const SourceManager &SM) const {
llvm::errs() << "comments::Token Kind=" << Kind << " ";
- Loc.dump(SM);
+ Loc.print(llvm::errs(), SM);
llvm::errs() << " " << Length << " \"" << L.getSpelling(*this, SM) << "\"\n";
}
OpenPOWER on IntegriCloud