diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2013-02-22 16:13:34 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2013-02-22 16:13:34 +0000 |
commit | 6582c36298a19c68659ca138c529415c1ed87f37 (patch) | |
tree | f7c7ef10d281e7262b5d97f910401b0e94bb3b3c /clang/lib | |
parent | 8de9046c6d4428185e47b9bdc073e1f3ede244a7 (diff) | |
download | bcm5719-llvm-6582c36298a19c68659ca138c529415c1ed87f37.tar.gz bcm5719-llvm-6582c36298a19c68659ca138c529415c1ed87f37.zip |
Use raw_ostream::indent, update comment.
llvm-svn: 175897
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/AST/ASTDiagnostic.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/clang/lib/AST/ASTDiagnostic.cpp b/clang/lib/AST/ASTDiagnostic.cpp index 87fd4453218..92b1ca0d5b1 100644 --- a/clang/lib/AST/ASTDiagnostic.cpp +++ b/clang/lib/AST/ASTDiagnostic.cpp @@ -1079,8 +1079,7 @@ class TemplateDiff { void TreeToString(int Indent = 1) { if (PrintTree) { OS << '\n'; - for (int i = 0; i < Indent; ++i) - OS << " "; + OS.indent(2 * Indent); ++Indent; } @@ -1456,9 +1455,9 @@ public: DiffTemplate(FromOrigTST, ToOrigTST); } - /// MakeString - When the two types given are templated types with the same + /// Emit - When the two types given are templated types with the same /// base template, a string representation of the type difference will be - /// loaded into S and return true. Otherwise, return false. + /// emitted to the stream and return true. Otherwise, return false. bool Emit() { Tree.StartTraverse(); if (Tree.Empty()) |