aboutsummaryrefslogtreecommitdiff
path: root/utils/scan-build
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-01-27 01:53:39 +0000
committerTed Kremenek <kremenek@apple.com>2009-01-27 01:53:39 +0000
commita26ddabc0eb8cf8ea4de1878f84d3b920fc2349f (patch)
treed897919f01ceb304e407085d5e61f0b0a72cd5ec /utils/scan-build
parent54d1ccbfcf19ddf39444f1b4018dd79487cc847b (diff)
PathDiagnostics:
- Add the distinction between the 'bug type' and the 'bug description' HTMLDiagnostics: - Output the bug type field as HTML comments scan-build: - Use the bug type field instead of the bug description for the HTML table. - Radar filing now automatically picks up the bug description in the title (addresses <rdar://problem/6265970>) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63084 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/scan-build')
-rwxr-xr-xutils/scan-build8
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/scan-build b/utils/scan-build
index 44f0cbc641..39b9ede939 100755
--- a/utils/scan-build
+++ b/utils/scan-build
@@ -350,7 +350,7 @@ sub ScanFile {
# Scan the report file for tags.
open(IN, "$Dir/$FName") or DieDiag("Cannot open '$Dir/$FName'\n");
- my $BugDesc = "";
+ my $BugType = "";
my $BugFile = "";
my $BugCategory;
my $BugPathLength = 1;
@@ -361,8 +361,8 @@ sub ScanFile {
last if ($found == 5);
- if (/<!-- BUGDESC (.*) -->$/) {
- $BugDesc = $1;
+ if (/<!-- BUGTYPE (.*) -->$/) {
+ $BugType = $1;
++$found;
}
elsif (/<!-- BUGFILE (.*) -->$/) {
@@ -390,7 +390,7 @@ sub ScanFile {
$BugCategory = "Other";
}
- push @$Index,[ $FName, $BugCategory, $BugDesc, $BugFile, $BugLine,
+ push @$Index,[ $FName, $BugCategory, $BugType, $BugFile, $BugLine,
$BugPathLength ];
}