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

Ted Kremenek kremenek at apple.com
Mon Aug 3 16:45:28 PDT 2009


Author: kremenek
Date: Mon Aug  3 18:45:27 2009
New Revision: 78022

URL: http://llvm.org/viewvc/llvm-project?rev=78022&view=rev
Log:
Have scan-build clue off of 'BUGMETAEND' to know when to stop processing an HTML file.

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=78022&r1=78021&r2=78022&view=diff

==============================================================================
--- cfe/trunk/utils/scan-build (original)
+++ cfe/trunk/utils/scan-build Mon Aug  3 18:45:27 2009
@@ -383,32 +383,25 @@
   my $BugCategory;
   my $BugPathLength = 1;
   my $BugLine = 0;
-  my $found = 0;
 
   while (<IN>) {
-
-    last if ($found == 5);
+    last if (/<!-- BUGMETAEND -->/);
 
     if (/<!-- BUGTYPE (.*) -->$/) {
       $BugType = $1;
-      ++$found;
     }
     elsif (/<!-- BUGFILE (.*) -->$/) {
       $BugFile = abs_path($1);
       UpdatePrefix($BugFile);
-      ++$found;
     }
     elsif (/<!-- BUGPATHLENGTH (.*) -->$/) {
       $BugPathLength = $1;
-      ++$found;
     }
     elsif (/<!-- BUGLINE (.*) -->$/) {
       $BugLine = $1;    
-      ++$found;
     }
     elsif (/<!-- BUGCATEGORY (.*) -->$/) {
       $BugCategory = $1;
-      ++$found;
     }
   }
 





More information about the cfe-commits mailing list