[cfe-commits] r56406 - /cfe/trunk/tools/scan-view/ScanView.py

Daniel Dunbar daniel at zuster.org
Sun Sep 21 12:08:54 PDT 2008


Author: ddunbar
Date: Sun Sep 21 14:08:54 2008
New Revision: 56406

URL: http://llvm.org/viewvc/llvm-project?rev=56406&view=rev
Log:
scan-view: Add more information to default bug description and use
iframe to embed bug view (for easy reference).

Modified:
    cfe/trunk/tools/scan-view/ScanView.py

Modified: cfe/trunk/tools/scan-view/ScanView.py
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/scan-view/ScanView.py?rev=56406&r1=56405&r2=56406&view=diff

==============================================================================
--- cfe/trunk/tools/scan-view/ScanView.py (original)
+++ cfe/trunk/tools/scan-view/ScanView.py Sun Sep 21 14:08:54 2008
@@ -238,9 +238,16 @@
             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 @@
 </script>
 <body>
 <h1>File Report</h1>
-%(keysAndValues)s
 <hr>
 <form name="form" action="/report_submit" method="post">
 Title:
@@ -295,6 +301,12 @@
 <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)





More information about the cfe-commits mailing list