[PATCH] align_value attribute in Clang

Hal Finkel hfinkel at anl.gov
Thu Jul 24 09:48:34 PDT 2014


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

 -Hal

> 
> ~Aaron
> 

-- 
Hal Finkel
Assistant Computational Scientist
Leadership Computing Facility
Argonne National Laboratory



More information about the cfe-commits mailing list