From 90e2e07bd5101c1bad082aaa01c8127b65e95f22 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Mon, 3 Aug 2009 23:45:27 +0000 Subject: [PATCH] Have scan-build clue off of 'BUGMETAEND' to know when to stop processing an HTML file. llvm-svn: 78022 --- clang/utils/scan-build | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/clang/utils/scan-build b/clang/utils/scan-build index acdc4ce9cdc8..873f1a1a09b0 100755 --- a/clang/utils/scan-build +++ b/clang/utils/scan-build @@ -383,32 +383,25 @@ sub ScanFile { my $BugCategory; my $BugPathLength = 1; my $BugLine = 0; - my $found = 0; while () { - - last if ($found == 5); + last if (//); if (/$/) { $BugType = $1; - ++$found; } elsif (/$/) { $BugFile = abs_path($1); UpdatePrefix($BugFile); - ++$found; } elsif (/$/) { $BugPathLength = $1; - ++$found; } elsif (/$/) { $BugLine = $1; - ++$found; } elsif (/$/) { $BugCategory = $1; - ++$found; } }