On Thu, Mar 27, 2014 at 4:09 PM, Richard Smith <[email protected]> wrote:
> LGTM

Thanks! Committed in r204952

~Aaron
>
>
> On Thu, Mar 27, 2014 at 12:20 PM, Aaron Ballman <[email protected]>
> wrote:
>>
>> This patch cleans up the __has_attribute implementation, but does not
>> modify its behavior. This is a partial application of the patch
>> discussed in
>> http://lists.cs.uiuc.edu/pipermail/cfe-dev/2014-March/036130.html
>>
>> This patch replaces the tablegen-driven AttrSpellings.inc, which lived
>> in the lexing layer with AttrHasAttributeImpl.inc, which lives in the
>> basic layer. It then updates the preprocessor to call through to this
>> new functionality which can take additional information into account
>> (such as scopes and syntaxes). It exposes the ability for parts of the
>> compiler to ask whether an attribute is supported for a given spelling
>> (including scope), syntax, triple and language options.
>>
>> To be clear: this patch is not intended to change the behavior of
>> __has_attribute. Passing AttrSyntax::Generic ensures that the current
>> behavior matches the previous implementation in that it *only*
>> considers the attribute's name and triple, not the scope or language
>> options. This is why there are no additional test cases supplied with
>> the patch.
>>
>> ~Aaron
>
>
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to