]> granicus.if.org Git - clang/commitdiff
Fix by Jordan Breeding: when scanning for prior runs, scan-build should ignore files...
authorTed Kremenek <kremenek@apple.com>
Thu, 7 Aug 2008 17:57:34 +0000 (17:57 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 7 Aug 2008 17:57:34 +0000 (17:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54473 91177308-0d34-0410-b5e6-96231b3b80d8

utils/scan-build

index 6e57fe3944ae58cecec367e9901db691a8884322..f5f5f54bb01cc47a233708df0a199c32336b9540 100755 (executable)
@@ -144,7 +144,7 @@ sub GetHTMLRunDir {
     my $max = 0;
     
     opendir(DIR, $Dir);
-    my @FILES= readdir(DIR); 
+    my @FILES = grep { -d "$Dir/$_" } readdir(DIR);
     closedir(DIR);
     
     foreach my $f (@FILES) {