[cfe-users] Annotate attribute on declarations

Job Noorman jobnoorman at gmail.com
Mon Jan 28 01:47:46 PST 2013


The annotate attribute does not get emitted on declarations. Consider the 
following example:

#define A(x) __attribute__((annotate(x)))
A("foo") void foo(void);
A("bar") void bar(){foo();}

Here, only bar gets an annotation.

I was wondering is this is the intended behavior or if I should file a bug.

Kind regards,
Job Noorman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20130128/4cf11d30/attachment.html>


More information about the cfe-users mailing list