HomePhabricator

[Attribute/Diagnostics] Print macro if definition is an attribute declaration

Description

[Attribute/Diagnostics] Print macro if definition is an attribute declaration

If an address_space attribute is defined in a macro, print the macro instead
when diagnosing a warning or error for incompatible pointers with different
address_spaces.

We allow this for all attributes (not just address_space), and for multiple
attributes declared in the same macro.

Differential Revision: https://reviews.llvm.org/D51329

Details

Committed
leonardchanMay 2 2019, 1:38 PM
Differential Revision
D51329: [Attribute/Diagnostics] Print macro if definition is an attribute declaration
Branches
Unknown
Tags
Unknown