<div dir="ltr">Hi Jonathan<div><br></div><div>Thanks for your reply. I forgot to mention that I was interested in having the attribute propagate through to the IR (to then later pick up in an IR analysis pass), which it doesn't appear to be (even when specifying the annotate attribute as you say).</div><div><br></div><div>Here is my test program:</div><div><br></div><div><div>class A { </div><div>  public:</div><div>    void foo() { }</div><div>} __attribute__((annotate("hello")));</div><div><br></div><div>int main(int argc, char** argv) {</div><div>  A a1; </div><div>  a1.foo();</div><div>  A* a2 = new A;</div><div>  a2->foo();</div><div>  return 0;</div><div>}</div></div><div><br></div><div>Cheers</div><div><br></div><div class="gmail_extra"><div><div class="gmail_signature"><div dir="ltr"><div><div>--</div>Khilan Gudka</div><div><div>Research Associate</div><div>Security Group</div><div>Computer Laboratory<br></div><div><div>University of Cambridge</div></div><div><a href="http://www.cl.cam.ac.uk/~kg365/" target="_blank">http://www.cl.cam.ac.uk/~kg365/</a></div></div></div></div></div>
<br><div class="gmail_quote">On 30 March 2015 at 11:03, Jonathan Coe <span dir="ltr"><<a href="mailto:jonathanbcoe@gmail.com" target="_blank">jonathanbcoe@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>I think it goes after the class definition.</div><div><br></div><div>class C {} __attribute__(X);<br><br><br></div><div><div class="h5"><div><br>On 30 Mar 2015, at 10:46, Khilan Gudka <<a href="mailto:Khilan.Gudka@cl.cam.ac.uk" target="_blank">Khilan.Gudka@cl.cam.ac.uk</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">Hi all<div><br></div><div>I'm looking for a way to annotate a c++ class and the annotate attribute doesn't seem to work on class declarations? Is there a special way to do it or is it just not possible?</div><div><br></div><div>Cheers<br clear="all"><div><div><div dir="ltr"><br><div><div>--</div>Khilan Gudka</div><div><div>Research Associate</div><div>Security Group</div><div>Computer Laboratory<br></div><div><div>University of Cambridge</div></div><div><a href="http://www.cl.cam.ac.uk/~kg365/" target="_blank">http://www.cl.cam.ac.uk/~kg365/</a></div></div></div></div></div>
<div dir="ltr"><br></div></div></div>
</div></blockquote></div></div><blockquote type="cite"><div><span>_______________________________________________</span><br><span>cfe-dev mailing list</span><br><span><a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a></span><br><span><a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a></span><br></div></blockquote></div></blockquote></div><br></div></div>