[clang] [llvm] Expose format (attribute) info for function declarations in Clang Index API (PR #113754)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 28 06:28:34 PST 2025


https://github.com/AaronBallman commented:

Thank you for your patience while I considered this. I'm not certain this is quite the correct design because it's very limited to just the format attribute. I would expect we'd rather want `clang_Cursor_getNumArguments` to return the number of arguments for a CXCursor that represents an attribute and `clang_Cursor_getArgument` to return attribute arguments. Have you considered such an approach?

https://github.com/llvm/llvm-project/pull/113754


More information about the cfe-commits mailing list