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 | 5dd8f280980451d475a37db087adab991c1b5655 (patch) | |
tree | 65ef816a14911c264295394dd46bfb1ce9fa60f5 | |
parent | 7e9f060b46b39289d978dd5f449e236df98867f9 (diff) |
Use raw_ostream::indent, update comment.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175897 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/AST/ASTDiagnostic.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/AST/ASTDiagnostic.cpp b/lib/AST/ASTDiagnostic.cpp index 87fd445321..92b1ca0d5b 100644 --- a/lib/AST/ASTDiagnostic.cpp +++ b/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()) |