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

Ted Kremenek kremenek at apple.com
Sat Sep 27 21:13:10 PDT 2008


Author: kremenek
Date: Sat Sep 27 23:13:09 2008
New Revision: 56765

URL: http://llvm.org/viewvc/llvm-project?rev=56765&view=rev
Log:
Add "Path Length" back to the table of bug reports.

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=56765&r1=56764&r2=56765&view=diff

==============================================================================
--- cfe/trunk/utils/scan-build (original)
+++ cfe/trunk/utils/scan-build Sat Sep 27 23:13:09 2008
@@ -388,7 +388,8 @@
     $BugCategory = "Other";
   }
     
-  push @$Index,[ $FName, $BugCategory, $BugDesc, $BugFile, $BugLine ];
+  push @$Index,[ $FName, $BugCategory, $BugDesc, $BugFile, $BugLine,
+                 $BugPathLength ];
 }
 
 ##----------------------------------------------------------------------------##
@@ -575,6 +576,7 @@
   <td class="sorttable_sorted">Bug Type<span id="sorttable_sortfwdind"> &#x25BE;</span></td>
   <td>File</td>
   <td class="Q">Line</td>
+  <td class="Q">Path Length</td>
   <td class="sorttable_nosort"></td>
   <!-- REPORTBUGCOL -->
 </tr></thead>
@@ -631,12 +633,12 @@
       print OUT "</td>";
       
       # Print out the quantities.
-      for my $j ( 4 .. 4 ) {
+      for my $j ( 4 .. 5 ) {
         print OUT "<td class=\"Q\">$row->[$j]</td>";        
       }
       
       # Print the rest of the columns.
-      for (my $j = 5; $j <= $#{$row}; ++$j) {
+      for (my $j = 6; $j <= $#{$row}; ++$j) {
         print OUT "<td>$row->[$j]</td>"
       }
 





More information about the cfe-commits mailing list