r175897 - Use raw_ostream::indent, update comment.

Benjamin Kramer benny.kra at googlemail.com
Fri Feb 22 08:13:34 PST 2013


Author: d0k
Date: Fri Feb 22 10:13:34 2013
New Revision: 175897

URL: http://llvm.org/viewvc/llvm-project?rev=175897&view=rev
Log:
Use raw_ostream::indent, update comment.

Modified:
    cfe/trunk/lib/AST/ASTDiagnostic.cpp

Modified: cfe/trunk/lib/AST/ASTDiagnostic.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ASTDiagnostic.cpp?rev=175897&r1=175896&r2=175897&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ASTDiagnostic.cpp (original)
+++ cfe/trunk/lib/AST/ASTDiagnostic.cpp Fri Feb 22 10:13:34 2013
@@ -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())





More information about the cfe-commits mailing list