]> granicus.if.org Git - clang/commitdiff
Clean up indentation.
authorTed Kremenek <kremenek@apple.com>
Mon, 2 Feb 2009 21:45:32 +0000 (21:45 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 2 Feb 2009 21:45:32 +0000 (21:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63551 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/PlistDiagnostics.cpp

index 72d64ed1a88fa66e41e23af03a76e82dfa28583e..b7e8385409b0ab0d6a387bbaeafafb4c8a8e818e 100644 (file)
@@ -98,7 +98,7 @@ static void EmitRange(llvm::raw_ostream& o, SourceManager* SM, SourceRange R,
 static void ReportDiag(llvm::raw_ostream& o, const PathDiagnosticPiece& P, 
                        const FIDMap& FM, SourceManager* SM) {
   
-  unsigned indent = 2;
+  unsigned indent = 4;
   Indent(o, indent) << "<dict>\n";
   ++indent;
   
@@ -115,7 +115,9 @@ static void ReportDiag(llvm::raw_ostream& o, const PathDiagnosticPiece& P,
   if (RI != RE) {
     Indent(o, indent) << "<key>ranges</key>\n";
     Indent(o, indent) << "<array>\n";
+    ++indent;
     for ( ; RI != RE; ++RI ) EmitRange(o, SM, *RI, FM, indent+1);
+    --indent;
     Indent(o, indent) << "</array>\n";
   }
   
@@ -223,7 +225,7 @@ PlistDiagnostics::~PlistDiagnostics() {
     o << "   </array>\n";
     
     // Output the bug type and bug category.  
-    o << "   <key>description</key>\n <string>" << D->getDescription()
+    o << "   <key>description</key>\n   <string>" << D->getDescription()
       << "</string>\n"
       << "   <key>category</key>\n   <string>" << D->getCategory()
       << "</string>\n"