[cfe-commits] r63551 - /cfe/trunk/lib/Driver/PlistDiagnostics.cpp
Ted Kremenek
kremenek at apple.com
Mon Feb 2 13:45:32 PST 2009
Author: kremenek
Date: Mon Feb 2 15:45:32 2009
New Revision: 63551
URL: http://llvm.org/viewvc/llvm-project?rev=63551&view=rev
Log:
Clean up indentation.
Modified:
cfe/trunk/lib/Driver/PlistDiagnostics.cpp
Modified: cfe/trunk/lib/Driver/PlistDiagnostics.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/PlistDiagnostics.cpp?rev=63551&r1=63550&r2=63551&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/PlistDiagnostics.cpp (original)
+++ cfe/trunk/lib/Driver/PlistDiagnostics.cpp Mon Feb 2 15:45:32 2009
@@ -98,7 +98,7 @@
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 @@
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 @@
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"
More information about the cfe-commits
mailing list