[PATCH] align_value attribute in Clang

Aaron Ballman aaron.ballman at gmail.com
Thu Jul 24 10:05:33 PDT 2014


On Thu, Jul 24, 2014 at 12:48 PM, Hal Finkel <hfinkel at anl.gov> wrote:
> ----- Original Message -----
>> From: "Aaron Ballman" <aaron.ballman at gmail.com>
>> To: "Alexey Bataev" <a.bataev at hotmail.com>
>> Cc: reviews+d4635+public+b7e82bdc1d8c324a at reviews.llvm.org, "llvm cfe" <cfe-commits at cs.uiuc.edu>, "Hal Finkel"
>> <hfinkel at anl.gov>, "Michael Spencer" <bigcheesegs at gmail.com>, "Richard Smith" <richard at metafoo.co.uk>
>> Sent: Thursday, July 24, 2014 11:23:24 AM
>> Subject: Re: [PATCH] align_value attribute in Clang
>>
>> On Wed, Jul 23, 2014 at 10:29 PM, Bataev, Alexey
>> <a.bataev at hotmail.com> wrote:
>> > Hal,
>> > probably you should add processing of this attribute to function
>> > mergeDeclAttribute() in SemaDecl.cpp or something like this.
>>
>> IIIRC, you just need to set DuplicatesAllowedWhileMerging = 1 in the
>> attribute definition.
>
> What does this have to do with propagating the attribute onto variables declared with auto, decltype, etc.?

Not a thing to do with that. :-)

~Aaron



More information about the cfe-commits mailing list