HomePhabricator

Fix printing of types in initializers with suppressed tags.

Authored by bkramer on Jan 25 2016, 2:34 AM.

Description

Fix printing of types in initializers with suppressed tags.

Tag and specifier printing can be suppressed in Decl::printGroup, but these suppressions leak into the initializers. Thus

int *x = ((void *)0), *y = ((void *)0);

gets printed as

int *x = ((void *)0), *y = ((*)0);

And

struct { struct Z z; } z = {(struct Z){}};

gets printed as

struct { struct Z z; } z = {(){}};

The stops the suppressions from leaking into the initializers.

Patch by Nick Sumner!

Differential Revision: http://reviews.llvm.org/D16438

llvm-svn: 258679

Details

Committed
bkramerJan 25 2016, 2:34 AM
Differential Revision
D16438: Fix printing of types in initializers with suppressed tags.
Parents
rG65b85382f609: [ARM] Add ARMv8.2-A FP16 scalar instructions
Branches
Unknown
Tags
Unknown