<html><body><div>Because I accidentally added it while playing around with patches and not cleaning up afterwards, and then committing a build-fix. There is/was no other support than this single line/enumerator. I do have patches for adding it to CXCursor, but then we would also need to add some way to retrieve the argument to the annotate attribute. And I would also like to be able to retrieve those from code-completion strings, but there I'm still puzzling on the API.</div><div><br>On 07 Oct, 2011,at 07:24 AM, Ted Kremenek <kremenek@apple.com> wrote:<br><br></div><div><blockquote type="cite"><div class="msg-quote"><div class="_stretch">Why shouldn't the AnnotateAttr be included? It is the last attribute CXCursor.<br>
<br>
On Oct 6, 2011, at 6:12 AM, Erik Verbruggen wrote:<br>
<br>
> Author: erikjv<br>
> Date: Thu Oct 6 08:12:18 2011<br>
> New Revision: 141292<br>
> <br>
> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=141292&view=rev" _mce_href="http://llvm.org/viewvc/llvm-project?rev=141292&view=rev">http://llvm.org/viewvc/llvm-project?rev=141292&view=rev</a><br>
> Log:<br>
> [libclang] Removed accidental addition of CXCursor_AnnotateAttr.<br>
> <br>
> Modified:<br>
> cfe/trunk/include/clang-c/Index.h<br>
> <br>
> Modified: cfe/trunk/include/clang-c/Index.h<br>
> URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang-c/Index.h?rev=141292&r1=141291&r2=141292&view=diff" _mce_href="http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang-c/Index.h?rev=141292&r1=141291&r2=141292&view=diff">http://llvmorg/viewvc/llvm-project/cfe/trunk/include/clang-c/Index.h?rev=141292&r1=141291&r2=141292&view=diff</a><br>
> ==============================================================================<br>
> --- cfe/trunk/include/clang-c/Index.h (original)<br>
> +++ cfe/trunk/include/clang-c/Index.h Thu Oct 6 08:12:18 2011<br>
> @@ -1830,8 +1830,7 @@<br>
> CXCursor_IBOutletCollectionAttr = 403,<br>
> CXCursor_CXXFinalAttr = 404,<br>
> CXCursor_CXXOverrideAttr = 405,<br>
> - CXCursor_AnnotateAttr = 406,<br>
> - CXCursor_LastAttr = CXCursor_AnnotateAttr,<br>
> + CXCursor_LastAttr = CXCursor_CXXOverrideAttr,<br>
> <br>
> /* Preprocessing */<br>
> CXCursor_PreprocessingDirective = 500,<br>
> <br>
> <br>
> _______________________________________________<br>
> cfe-commits mailing list<br>
> <a href="mailto:cfe-commits@cs.uiuc.edu" _mce_href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiucedu/mailman/listinfo/cfe-commits" _mce_href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
<br>
</div></div></blockquote></div></body></html>