[cfe-commits] r56173 - in /cfe/trunk/utils: ccc-analyzer scan-build
Ted Kremenek
kremenek at apple.com
Fri Sep 12 15:49:36 PDT 2008
Author: kremenek
Date: Fri Sep 12 17:49:36 2008
New Revision: 56173
URL: http://llvm.org/viewvc/llvm-project?rev=56173&view=rev
Log:
Include links to stderr output of clang in the table of files that clang rejects.
Modified:
cfe/trunk/utils/ccc-analyzer
cfe/trunk/utils/scan-build
Modified: cfe/trunk/utils/ccc-analyzer
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/ccc-analyzer?rev=56173&r1=56172&r2=56173&view=diff
==============================================================================
--- cfe/trunk/utils/ccc-analyzer (original)
+++ cfe/trunk/utils/ccc-analyzer Fri Sep 12 17:49:36 2008
@@ -48,7 +48,7 @@
close OUT;
`uname -a >> $PPFile.info 2>&1`;
`$CC -v >> $PPFile.info 2>&1`;
- system 'mv',$ofile,"$PPFile.output";
+ system 'mv',$ofile,"$PPFile.stderr.txt";
}
##----------------------------------------------------------------------------##
Modified: cfe/trunk/utils/scan-build
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/scan-build?rev=56173&r1=56172&r2=56173&view=diff
==============================================================================
--- cfe/trunk/utils/scan-build (original)
+++ cfe/trunk/utils/scan-build Fri Sep 12 17:49:36 2008
@@ -587,7 +587,7 @@
<p>The analyzer had problems processing the following files:</p>
<table>
-<thead><tr><td>Problem</td><td>Source File</td><td>Preprocessed File</td></tr></thead>
+<thead><tr><td>Problem</td><td>Source File</td><td>Preprocessed File</td><td>STDERR Output</td></tr></thead>
ENDTEXT
foreach my $file (sort @files) {
@@ -604,8 +604,8 @@
close (INFO);
# Print the information in the table.
my $prefix = GetPrefix();
- if (defined $prefix) { $srcfile =~ s/^$prefix//; }
- print OUT "<tr><td>$problem</td><td>$srcfile</td><td class=\"View\"><a href=\"crashes/$ppfile\">View</a></td></tr>\n";
+ if (defined $prefix) { $srcfile =~ s/^\Q$prefix//; }
+ print OUT "<tr><td>$problem</td><td>$srcfile</td><td><a href=\"crashes/$ppfile\">$ppfile</a></td><td><a href=\"crashes/$ppfile.stderr.txt\">$ppfile.stderr.txt</a></td></tr>\n";
}
print OUT <<ENDTEXT;
More information about the cfe-commits
mailing list