llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

Invalid HTML in reports with macros and popups.

Open haoNoQ opened this issue 6 years ago • 8 comments

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.

haoNoQ avatar Feb 04 '20 21:02 haoNoQ

mentioned in issue llvm/llvm-bugzilla-archive#46744

haoNoQ avatar Nov 27 '21 03:11 haoNoQ

*** Bug llvm/llvm-bugzilla-archive#46744 has been marked as a duplicate of this bug. ***

haoNoQ avatar Jul 16 '20 17:07 haoNoQ

Cherry-picked to 10.x as 720870ee60a2cf5259bdc5e9b2a5336381a165fc

zmodem avatar Feb 10 '20 12:02 zmodem

Landed as 482e236e569e8324f70778af1eb756923cd490dc. Hans, please cherry-pick ^.^

haoNoQ avatar Feb 05 '20 15:02 haoNoQ

https://reviews.llvm.org/D73993

haoNoQ avatar Feb 04 '20 21:02 haoNoQ

Thanks! I could review it anytime. Should I try to create my own solution?

Charusso avatar Feb 04 '20 21:02 Charusso

+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.

haoNoQ avatar Feb 04 '20 21:02 haoNoQ

assigned to @Charusso

haoNoQ avatar Feb 04 '20 21:02 haoNoQ