From d658e67b438c60fbe3bd1773a3172fd0f082c483 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78022 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/scan-build | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/utils/scan-build b/utils/scan-build index acdc4ce9cd..873f1a1a09 100755 --- a/utils/scan-build +++ b/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; } } -- 2.40.0