<div dir="ltr">I'm /guessing/ this API doesn't respond with attributes clang doesn't recognize (CC'd Aaron Ballman who would likely know the details better than I do). Does the API correctly respond with a non-zero number of attributes for any clang-supported attribute (listed here: <a href="https://clang.llvm.org/docs/AttributeReference.html">https://clang.llvm.org/docs/AttributeReference.html</a> )</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Dec 2, 2021 at 5:23 AM Владимир Фролов via cfe-users <<a href="mailto:cfe-users@lists.llvm.org">cfe-users@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Dear colleguaes, it seems i have met the bug for processing of C++11 custom language attributes.</div><div> </div><div>1) I took example from <a href="https://github.com/llvm/llvm-project/blob/main/clang/examples/Attribute/Attribute.cpp" rel="noopener noreferrer" target="_blank">https://github.com/llvm/llvm-project/blob/main/clang/examples/Attribute/Attribute.cpp</a></div><div>2) And make a short sample which reproduce the bug <a href="https://github.com/FROL256/clang_parse_ast_example" rel="noopener noreferrer" target="_blank">https://github.com/FROL256/clang_parse_ast_example</a></div><div> </div><div>The problem in that getNumArgs() is always zero, nevermind how many arguments we actually have in the attribute.</div><div>I have tested this with clang 12. I think i could test it under clang 14 if build sample as a part of llvm.</div><div>But probably i just did some-thing wrong ... ?</div><div> </div><div>Anyway it would be nice to have this issue working with clang 12 because usually i work with prebuild packages of clang and libtooling on Linux Mint.</div><div>Could you please look prepared sample and suggest sms if possible ... thanks! )</div><div>-- </div><div>Best Regards,</div><div> Frolov V.A.</div><div> </div>_______________________________________________<br>
cfe-users mailing list<br>
<a href="mailto:cfe-users@lists.llvm.org" target="_blank">cfe-users@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users</a><br>
</blockquote></div>