[PlistSupport] Produce a newline to end plist output files

Summary:
As suggested in the review of D62949, this patch updates the plist
output to have a newline at the end of the file. This makes it so that
the plist output file qualifies as a POSIX text file, which increases
the consumability of the generated plist file in relation to various
tools.

Reviewers: NoQ, sfertile, xingxue, jasonliu, daltenty

Reviewed By: NoQ, xingxue

Subscribers: jsji, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D63041

llvm-svn: 362992
This commit is contained in:
Hubert Tong 2019-06-10 22:30:57 +00:00
parent a2c2d731db
commit 9df9cbafce
2 changed files with 2 additions and 2 deletions

View File

@ -120,5 +120,5 @@ void arcmt::writeARCDiagsToPlist(const std::string &outPath,
o << " </array>\n";
// Finish.
o << "</dict>\n</plist>";
o << "</dict>\n</plist>\n";
}

View File

@ -748,7 +748,7 @@ void PlistDiagnostics::FlushDiagnosticsImpl(
}
// Finish.
o << "</dict>\n</plist>";
o << "</dict>\n</plist>\n";
}
//===----------------------------------------------------------------------===//