[PATCH] D30406: [Analyzer] Add support for displaying cross-file diagnostic paths in HTML output

Vlad Tsyrklevich via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 27 07:21:09 PST 2017


vlad.tsyrklevich created this revision.

While looking at checker output with https://reviews.llvm.org/D30289 applied I realized I was missing results. After some digging I found that it's because the Linux kernel makes heavy use of inlined functions included in header files, and the resulting diagnostic path now included cross-file diagnostics which are unsupported. This change adds support for cross-file diagnostic paths, resulting in output that looks like https://rawgit.com/vlad902/805a58327e12636fef119cdeb21ad639/raw/48f4183152a15e3e0f6fddfdc4edeb75c5a62295/report.html If the diagnostic path is not cross-file, there is no change in the output.


https://reviews.llvm.org/D30406

Files:
  lib/Rewrite/HTMLRewrite.cpp
  lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
  test/Analysis/diagnostics/diag-cross-file-boundaries.c
  test/Analysis/diagnostics/diag-cross-file-boundaries.h
  test/Analysis/html-diags-multifile.c
  test/Coverage/html-diagnostics.c
  test/Coverage/html-multifile-diagnostics.c
  test/Coverage/html-multifile-diagnostics.h
  www/analyzer/open_projects.html

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30406.89880.patch
Type: text/x-patch
Size: 17346 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170227/d2b2c696/attachment-0001.bin>


More information about the cfe-commits mailing list