r368338 - [analyzer] Fix scan-build's plist output in plist-html mode.

Artem Dergachev via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 8 13:22:32 PDT 2019


Author: dergachev
Date: Thu Aug  8 13:22:32 2019
New Revision: 368338

URL: http://llvm.org/viewvc/llvm-project?rev=368338&view=rev
Log:
[analyzer] Fix scan-build's plist output in plist-html mode.

r366941 accidentally made it delete all plist files
as soon as they're produced.

Modified:
    cfe/trunk/tools/scan-build/libexec/ccc-analyzer

Modified: cfe/trunk/tools/scan-build/libexec/ccc-analyzer
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/scan-build/libexec/ccc-analyzer?rev=368338&r1=368337&r2=368338&view=diff
==============================================================================
--- cfe/trunk/tools/scan-build/libexec/ccc-analyzer (original)
+++ cfe/trunk/tools/scan-build/libexec/ccc-analyzer Thu Aug  8 13:22:32 2019
@@ -118,7 +118,7 @@ my $ResultFile;
 
 # Remove any stale files at exit.
 END {
-  if (defined $ResultFile && $ResultFile ne "") {
+  if (defined $ResultFile && -z $ResultFile) {
     unlink($ResultFile);
   }
   if (defined $CleanupFile) {




More information about the cfe-commits mailing list