[cfe-dev] annotations not working with functions

Mattias Holm holm at liacs.nl
Thu Jul 2 07:33:05 PDT 2009


Is anyone working on this?

I would especially be interested in something where it is possible to 
annotate local variables and types as well.

For example:

typedef struct foo {

} foo __attribute__((annote("blah"));

It would be really nice if this could pass on the annotation to llvm 
(possibly by applying the annotation to all variables of the type).


/ Mattias


Eli Friedman wrote:
> On Wed, Jul 1, 2009 at 11:03 PM, <Vasudev.Negi at microchip.com> wrote:
>>  Annotations work with global variables but do not work with functions. Is
>> it supposed to work or am I missing something?
> 
> http://llvm.org/bugs/show_bug.cgi?id=2490
> 
> -Eli




More information about the cfe-dev mailing list