summaryrefslogtreecommitdiffstats
path: root/tools/scan-view
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-09-21 19:08:54 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-09-21 19:08:54 +0000
commit25b51d06991ee3b60a24ba5d303973794401d527 (patch)
treeb85a33995c8ccdb987da47bfc8a50f3105b5daa3 /tools/scan-view
parenta05131a971a82428c469f715ccec73556e6467bd (diff)
scan-view: Add more information to default bug description and use
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
Diffstat (limited to 'tools/scan-view')
-rw-r--r--tools/scan-view/ScanView.py18
1 files changed, 15 insertions, 3 deletions
diff --git a/tools/scan-view/ScanView.py b/tools/scan-view/ScanView.py
index b001973f71..41e5a51392 100644
--- a/tools/scan-view/ScanView.py
+++ b/tools/scan-view/ScanView.py
@@ -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)