[cfe-commits] r54473 - /cfe/trunk/utils/scan-build

Ted Kremenek kremenek at apple.com
Thu Aug 7 10:57:55 PDT 2008


Author: kremenek
Date: Thu Aug  7 12:57:34 2008
New Revision: 54473

URL: http://llvm.org/viewvc/llvm-project?rev=54473&view=rev
Log:
Fix by Jordan Breeding: when scanning for prior runs, scan-build should ignore files that are not directories.

Modified:
    cfe/trunk/utils/scan-build

Modified: cfe/trunk/utils/scan-build
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/scan-build?rev=54473&r1=54472&r2=54473&view=diff

==============================================================================
--- cfe/trunk/utils/scan-build (original)
+++ cfe/trunk/utils/scan-build Thu Aug  7 12:57:34 2008
@@ -144,7 +144,7 @@
     my $max = 0;
     
     opendir(DIR, $Dir);
-    my @FILES= readdir(DIR); 
+    my @FILES = grep { -d "$Dir/$_" } readdir(DIR);
     closedir(DIR);
     
     foreach my $f (@FILES) {





More information about the cfe-commits mailing list