summaryrefslogtreecommitdiffstats
path: root/clang/test/Coverage/html-diagnostics.c
diff options
context:
space:
mode:
authorDevin Coughlin <dcoughlin@apple.com>2017-08-03 18:12:22 +0000
committerDevin Coughlin <dcoughlin@apple.com>2017-08-03 18:12:22 +0000
commitf0cadcd9f385d36dc751cdb32476b32ec43306b5 (patch)
tree1934ab120846a4e22c0ca9b3ad69bbab4ba7d275 /clang/test/Coverage/html-diagnostics.c
parentfd2c3795682fb9a3139f6411b1cf27c1304a66fc (diff)
downloadbcm5719-llvm-f0cadcd9f385d36dc751cdb32476b32ec43306b5.tar.gz
bcm5719-llvm-f0cadcd9f385d36dc751cdb32476b32ec43306b5.zip
[Analyzer] Add support for displaying cross-file diagnostic paths in HTML output
This change adds support for cross-file diagnostic paths in html output. If the diagnostic path is not cross-file, there is no change in the output. Patch by Vlad Tsyrklevich! Differential Revision: https://reviews.llvm.org/D30406 llvm-svn: 309968
Diffstat (limited to 'clang/test/Coverage/html-diagnostics.c')
-rw-r--r--clang/test/Coverage/html-diagnostics.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/Coverage/html-diagnostics.c b/clang/test/Coverage/html-diagnostics.c
index 045943ae8b1..34b86cd9829 100644
--- a/clang/test/Coverage/html-diagnostics.c
+++ b/clang/test/Coverage/html-diagnostics.c
@@ -1,11 +1,18 @@
// RUN: rm -rf %t
// RUN: %clang_cc1 -analyze -analyzer-output=html -analyzer-checker=core -o %t %s
// RUN: find %t -name "*.html" -exec cat "{}" ";" | FileCheck %s
+//
+// RUN: rm -rf %t
+// RUN: %clang_cc1 -analyze -analyzer-output=html-single-file -analyzer-checker=core -o %t %s
+// RUN: find %t -name "*.html" -exec cat "{}" ";" | FileCheck %s
// REQUIRES: staticanalyzer
// CHECK: <h3>Annotated Source Code</h3>
+// Make sure it's not generated as a multi-file HTML output
+// CHECK-NOT: <h4 class=FileName>{{.*}}
+
// Without tweaking expr, the expr would hit to the line below
// emitted to the output as comment.
// CHECK: {{[D]ereference of null pointer}}
OpenPOWER on IntegriCloud