[cfe-dev] Duplicate attributes

Dmitri Gribenko gribozavr at gmail.com
Sat Oct 5 18:15:34 PDT 2013


On Sat, Oct 5, 2013 at 4:15 PM, Aaron Ballman <aaron at aaronballman.com> wrote:
[...]
> argument_with_type_tag
> pointer_with_type_tag

Yes, there can be multiple such attributes on a function.  But we
could reject the case where two attributes have the same argument
index:

void A_func(void *ptr, void *tag, void *tag2)
  __attribute__(( pointer_with_type_tag(a,1,2) ))
  __attribute__(( pointer_with_type_tag(a,1,3) )); // expected-error

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/



More information about the cfe-dev mailing list