]> granicus.if.org Git - clang/commitdiff
Update scan-build to add markers about crashes.
authorDaniel Dunbar <daniel@zuster.org>
Thu, 25 Sep 2008 01:10:50 +0000 (01:10 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 25 Sep 2008 01:10:50 +0000 (01:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56603 91177308-0d34-0410-b5e6-96231b3b80d8

utils/scan-build

index d2c25b73dd55204baf5df2857cc8133347574f93..03326fdf1a87ad0a7a42452af0739a8a522c39c3 100755 (executable)
@@ -685,11 +685,14 @@ ENDTEXT
         my $prefix = GetPrefix();
         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";
+        my $ppfile_clang = $ppfile;
+        $ppfile_clang =~ s/[.](.+)$/.clang.$1/;
+        print OUT "  <!-- REPORTPROBLEM file=\"crashes/$ppfile\" clangfile=\"crashes/$ppfile_clang\" stderr=\"crashes/$ppfile.stderr.txt\" info=\"crashes/$ppfile.info\" -->\n";
       }
 
       print OUT <<ENDTEXT;
 </table>
-<p>Please consider submitting preprocessed files as <a href="http://clang.llvm.org/StaticAnalysisUsage.html#filingbugs">bug reports</a>.</p>
+<p>Please consider submitting preprocessed files as <a href="http://clang.llvm.org/StaticAnalysisUsage.html#filingbugs">bug reports</a>. <!-- REPORTCRASHES --> </p>
 ENDTEXT
     }
   }