[cfe-users] (bug?) ParsedAttr::getNumArgs() always return zero

2021-12-02 Thread Владимир Фролов via cfe-users
Dear colleguaes, it seems i have met the bug for processing of C++11 custom language attributes. 1) I took example from https://github.com/llvm/llvm-project/blob/main/clang/examples/Attribute/Attribute.cpp2) And make a short sample which reproduce the bug https://github.com/FROL256/clang_parse_ast_

Re: [cfe-users] (bug?) ParsedAttr::getNumArgs() always return zero

2021-12-02 Thread David Blaikie via cfe-users
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: https://clang.llvm.org/docs/At

Re: [cfe-users] (bug?) ParsedAttr::getNumArgs() always return zero

2021-12-02 Thread Aaron Ballman via cfe-users
On Thu, Dec 2, 2021 at 12:48 PM David Blaikie wrote: > > 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 cla