<div>Thank you very much!</div><div>I can use "__attribute__((size("w", "h")))" instead of [[mynamespace::size(w,h)]] for a while )</div><div> </div><div>02.12.2021, 21:06, "Aaron Ballman" <aaron@aaronballman.com>:</div><blockquote><p>On Thu, Dec 2, 2021 at 12:48 PM David Blaikie <<a href="mailto:dblaikie@gmail.com" rel="noopener noreferrer">dblaikie@gmail.com</a>> wrote:</p><blockquote><br /> 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" rel="noopener noreferrer">https://clang.llvm.org/docs/AttributeReference.html</a> )</blockquote><p><br />I think this is <a href="https://bugs.llvm.org/show_bug.cgi?id=46446" rel="noopener noreferrer">https://bugs.llvm.org/show_bug.cgi?id=46446</a>, which has<br />more details about the issues and plausible ways forward.<br /><br />~Aaron<br /> </p><blockquote><br /> On Thu, Dec 2, 2021 at 5:23 AM Владимир Фролов via cfe-users <<a href="mailto:cfe-users@lists.llvm.org" rel="noopener noreferrer">cfe-users@lists.llvm.org</a>> wrote:<blockquote><br /> Dear colleguaes, it seems i have met the bug for processing of C++11 custom language attributes.<br /><br /> 1) I took example from <a href="https://github.com/llvm/llvm-project/blob/main/clang/examples/Attribute/Attribute.cpp" rel="noopener noreferrer">https://github.com/llvm/llvm-project/blob/main/clang/examples/Attribute/Attribute.cpp</a><br /> 2) And make a short sample which reproduce the bug <a href="https://github.com/FROL256/clang_parse_ast_example" rel="noopener noreferrer">https://github.com/FROL256/clang_parse_ast_example</a><br /><br /> The problem in that getNumArgs() is always zero, nevermind how many arguments we actually have in the attribute.<br /> I have tested this with clang 12. I think i could test it under clang 14 if build sample as a part of llvm.<br /> But probably i just did some-thing wrong ... ?<br /><br /> 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.<br /> Could you please look prepared sample and suggest sms if possible ... thanks! )<br /> --<br /> Best Regards,<br />  Frolov V.A.<br /><br /> _______________________________________________<br /> cfe-users mailing list<br /> <a href="mailto:cfe-users@lists.llvm.org" rel="noopener noreferrer">cfe-users@lists.llvm.org</a><br /> <a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users" rel="noopener noreferrer">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users</a></blockquote></blockquote></blockquote><div> </div><div> </div><div>-- </div><div>С уважением,</div><div>Фролов В. А.</div><div> </div>