Hi!<br /><br />I the easiest way for you to add a C++11 attribute to a statement is to follow the LoopHint attribute through the code.<br /><br />The attribute is handled in ./lib/Sema/SemaStmtAttr.cpp<br /><br />Cheers, <br />Michael Haidl <br /><br /><p>On December 13, 2014, Luis Miguel Sanchez Garcia <luismiguel.sanchez@uc3m.es> wrote:</p><blockquote type="cite"><div class="oneComWebmail-html oneComWebmail-mail"><div class="oneComWebmail-body"><div dir="ltr"><div>Hi all,</div><div><br /></div><div>I'm adding some new non-standard C++ attributes in clang. I'm using this link </div><div><br /></div><a href="http://clang.llvm.org/docs/InternalsManual.html#include-clang-basic-attr-td" target="_blank">http://clang.llvm.org/docs/InternalsManual.html#include-clang-basic-attr-td</a><div><br /></div><div>I added an C++11 attribute  in clang attached to a Function, </div><div><br /></div><div>* include/clang/Basic/Attr.td<br /></div><div><br /></div><div><div><i>def CXX11MYOWNAttr : InheritableAttr {</i></div><div><i>  let Spellings = [CXX11<"my","ownattr", 201412>];</i></div><div><i>  let Subjects = SubjectList<[Function], ErrorDiag>;</i></div><div><i>  let Documentation = [Undocumented];<br /></i></div><div><i>}</i></div></div><div><br /></div><div>* lib/Sema/SemaDeclAttr.cpp<br /></div><div>  </div><div>in <b>ProcessDeclAttribute</b> function:</div><div> </div><div><div><i>  case AttributeList::AT_</i><i>CXX11MYOWNAttr</i><i>:</i></div><div><i>    handleSimpleAttribute<</i><i>CXX11MYOWNAttr</i><i>>(S, D, Attr);</i></div><div><i>    break;</i></div><div><i>  }</i></div></div><div><br /></div><div><br /></div><div>however, I would like to include this to a statement.</div><div><br /></div><div>Any help?</div><div><br /></div><div>Thanks.</div><div><br clear="all" /><div><div class="oneComWebmail-gmail_signature"><div dir="ltr">-- <br />-- <br />--------------------------------------------------<br />Luis Miguel Sánchez García<br /><span style="border-collapse: collapse;">Computer Architecture and Technology Area.</span><div>Office 2.2.B08<br /><div>Computer Science Department. UNIVERSIDAD CARLOS III DE MADRID<br />Universidad Carlos III de Madrid<br />Avda. de la Universidad, 30<br />28911 Leganés - Madrid - Spain<br />e-mail: <a href="mailto:lmsan@arcos.inf.uc3m.es" target="_blank">lmsan@arcos.inf.uc3m.es</a><br />        <a href="mailto:luismiguel.sanchez@uc3m.es" target="_blank">luismiguel.sanchez@uc3m.es</a><br /><br /></div><div>Phone: (+34) 91 624 5951<br /><div> <br />Linked-In: <a href="http://es.linkedin.com/in/lmsan" style="color: rgb(17,85,204);" target="_blank">http://es.linkedin.com/in/lmsan</a><br />Twitter: <a href="http://twitter.com/lmsanchezgarcia" style="color: rgb(17,85,204);" target="_blank">http://twitter.com/lmsanchezgarcia</a><br />--------------------------------------------------</div></div></div></div></div></div>
</div></div>
</div></div><div class="oneComWebmail-mail"><div class="oneComWebmail-body">_______________________________________________<br />cfe-dev mailing list<br /><a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br /><a target="_blank" href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br /></div></div></blockquote>