C++11 attributes for C11 (was Re: [PATCH] Generalized attribute support)

Aaron Ballman aaron at aaronballman.com
Tue Apr 22 14:01:26 PDT 2014


On Tue, Apr 22, 2014 at 4:45 PM, Nico Weber <thakis at chromium.org> wrote:
> On Sat, Apr 19, 2014 at 4:05 PM, Alp Toker <alp at nuanti.com> wrote:
>>
>> Small update for the list..
>>
>> We discussed this at LLVM Europe 2014 and came to the conclusion that we
>> might as well offer the feature behind an -f flag.
>>
>> This should satisfy user requests for C++11-style attributes in C11
>> without prejudicing any standards process. Thanks to the many detailed
>> use-cases people sent in that have made me more comfortable picking this up
>> again.
>
>
> Are these use-cases visible anywhere?

I can't speak for Alp, but I can detail one that I am aware of -- the
capability attributes relating to thread roles could use the ability
to attach to null statements for things like [[incompatible(one_role,
another_role)]];

~Aaron



More information about the cfe-commits mailing list