]> granicus.if.org Git - clang/commitdiff
Include links to stderr output of clang in the table of files that clang rejects.
authorTed Kremenek <kremenek@apple.com>
Fri, 12 Sep 2008 22:49:36 +0000 (22:49 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 12 Sep 2008 22:49:36 +0000 (22:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56173 91177308-0d34-0410-b5e6-96231b3b80d8

utils/ccc-analyzer
utils/scan-build

index 739e24805e08d1f7e9f28169ad52aaac09c88397..845977eb7c1efe61686c88646b4021f40519a1a6 100755 (executable)
@@ -48,7 +48,7 @@ sub ProcessClangFailure {
   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";
 }
 
 ##----------------------------------------------------------------------------##
index f8d2d8f42bbe4f2c8f95cccd517a6c77b58a1559..bef022ba3d2e0a0d298e970f903d7ac79a7a99ee 100755 (executable)
@@ -587,7 +587,7 @@ ENDTEXT
 <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 @@ ENDTEXT
         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;