From 22b37f95a5a1a450f1205faaa28220d963efe95c Mon Sep 17 00:00:00 2001 From: Hubert Tong Date: Mon, 10 Jun 2019 22:30:57 +0000 Subject: [PATCH] [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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@362992 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/ARCMigrate/PlistReporter.cpp | 2 +- lib/StaticAnalyzer/Core/PlistDiagnostics.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ARCMigrate/PlistReporter.cpp b/lib/ARCMigrate/PlistReporter.cpp index 636caddf1b..6d7fcb053b 100644 --- a/lib/ARCMigrate/PlistReporter.cpp +++ b/lib/ARCMigrate/PlistReporter.cpp @@ -120,5 +120,5 @@ void arcmt::writeARCDiagsToPlist(const std::string &outPath, o << " \n"; // Finish. - o << "\n"; + o << "\n\n"; } diff --git a/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp b/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp index 231db1fa16..8387512792 100644 --- a/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp +++ b/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp @@ -748,7 +748,7 @@ void PlistDiagnostics::FlushDiagnosticsImpl( } // Finish. - o << "\n"; + o << "\n\n"; } //===----------------------------------------------------------------------===// -- 2.40.0