From: Ted Kremenek Date: Sun, 28 Sep 2008 04:13:09 +0000 (+0000) Subject: Add "Path Length" back to the table of bug reports. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=81983111dfa43e5f6b21b221c959586a6a766e76;p=clang Add "Path Length" back to the table of bug reports. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56765 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/scan-build b/utils/scan-build index 1dc1770f58..160b00ce8a 100755 --- a/utils/scan-build +++ b/utils/scan-build @@ -388,7 +388,8 @@ sub ScanFile { $BugCategory = "Other"; } - push @$Index,[ $FName, $BugCategory, $BugDesc, $BugFile, $BugLine ]; + push @$Index,[ $FName, $BugCategory, $BugDesc, $BugFile, $BugLine, + $BugPathLength ]; } ##----------------------------------------------------------------------------## @@ -575,6 +576,7 @@ print OUT <Bug Type ▾ File Line + Path Length @@ -631,12 +633,12 @@ ENDTEXT print OUT ""; # Print out the quantities. - for my $j ( 4 .. 4 ) { + for my $j ( 4 .. 5 ) { print OUT "$row->[$j]"; } # Print the rest of the columns. - for (my $j = 5; $j <= $#{$row}; ++$j) { + for (my $j = 6; $j <= $#{$row}; ++$j) { print OUT "$row->[$j]" }