]> granicus.if.org Git - clang/commitdiff
scan-view: Add more information to default bug description and use
authorDaniel Dunbar <daniel@zuster.org>
Sun, 21 Sep 2008 19:08:54 +0000 (19:08 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sun, 21 Sep 2008 19:08:54 +0000 (19:08 +0000)
iframe to embed bug view (for easy reference).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56406 91177308-0d34-0410-b5e6-96231b3b80d8

tools/scan-view/ScanView.py

index b001973f715704b824bc25396f791c2df43628a8..41e5a51392ea53a143da034545fbc57962336daa 100644 (file)
@@ -238,9 +238,16 @@ Submission in progress."""%locals()
             return self.send_internal_error('Invalid report.')
 
         initialTitle = keys.get('DESC','')
-        initialDescription = 'Bug generated by the clang static analyzer.'
+        initialDescription = """\
+Bug generated by the clang static analyzer.
+
+Description: %s
+File: %s
+Line: %s
+"""%(initialTitle,
+     keys.get('FILE','<unknown>'),
+     keys.get('LINE','<unknown>'))
 
-        keysAndValues = '\n'.join(['<b>%s</b>: %s<br>'%(k,v) for k,v in keys.items()])
         reporterSelections = []
         reporterOptions = []
         
@@ -276,7 +283,6 @@ function updateReporterOptions() {
 </script>
 <body>
 <h1>File Report</h1>
-%(keysAndValues)s
 <hr>
 <form name="form" action="/report_submit" method="post">
 Title:
@@ -295,6 +301,12 @@ Method: <select id="reporter" name="reporter" onChange="updateReporterOptions()"
 <hr>
 <input type="submit" name="Submit" value="Submit">
 </form>
+
+<iframe src="/report-%(report)s.html#EndPath" width="100%%" height="40%%"
+        scrolling="auto" frameborder="1">
+  <a href="/report-%(report)s.html#EndPath">View Bug Report</a>
+</iframe>
+
 </body>
 </html>"""%locals()
         return self.send_string(result)