From 81983111dfa43e5f6b21b221c959586a6a766e76 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Sun, 28 Sep 2008 04:13:09 +0000 Subject: [PATCH] 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 --- utils/scan-build | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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]" } -- 2.50.1