diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-02-02 21:45:32 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-02-02 21:45:32 +0000 |
commit | e9aee88eed40fb4e8798e1870fac0ccdae7f206b (patch) | |
tree | ca73729af33f6fe4b5239e38fe1379afd17550bb /clang/lib | |
parent | 7633cbf005da7f40bf203630f0acc97483b7dfb0 (diff) | |
download | bcm5719-llvm-e9aee88eed40fb4e8798e1870fac0ccdae7f206b.tar.gz bcm5719-llvm-e9aee88eed40fb4e8798e1870fac0ccdae7f206b.zip |
Clean up indentation.
llvm-svn: 63551
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/Driver/PlistDiagnostics.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/Driver/PlistDiagnostics.cpp b/clang/lib/Driver/PlistDiagnostics.cpp index 72d64ed1a88..b7e8385409b 100644 --- a/clang/lib/Driver/PlistDiagnostics.cpp +++ b/clang/lib/Driver/PlistDiagnostics.cpp @@ -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" |