Invalid HTML in reports with macros and popups.
| Bugzilla Link | 44782 |
| Resolution | FIXED |
| Resolved on | Jul 16, 2020 10:06 |
| Version | trunk |
| OS | All |
| Blocks | llvm/llvm-project#43900 |
| Attachments | The buggy HTML output. |
| CC | @devincoughlin,@zmodem |
Extended Description
$ cat test.c
#define MACRO if (b)
void foo2() { int a; int b = 1; MACRO bar(a); }
$ clang -cc1 -analyze -analyzer-checker=core test.c
-analyzer-output=html -o .
HTML output attached
Basically, it gets messy when it tries to produce popup pieces within macro pieces.
mentioned in issue llvm/llvm-bugzilla-archive#46744
*** Bug llvm/llvm-bugzilla-archive#46744 has been marked as a duplicate of this bug. ***
Cherry-picked to 10.x as 720870ee60a2cf5259bdc5e9b2a5336381a165fc
Landed as 482e236e569e8324f70778af1eb756923cd490dc. Hans, please cherry-pick ^.^
https://reviews.llvm.org/D73993
Thanks! I could review it anytime. Should I try to create my own solution?
+Csaba.
I almost already have a patch for this but i want to push the fix to the upcoming clang release, so i reported it as per process.
assigned to @Charusso