[clang] #101784 part 1: introduce ctyped in an independent manner (PR #101941)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 8 10:40:00 PDT 2024
TsXor wrote:
> 17. this does not work out of the box, at least not without further changes. E.g. the exact example you gave there results in an error for me.
If you mean `conf.lib.clang_Cursor_getTemplateArgumentKind`, then it just happened to be that exception. This function uses a deprecated ctypes feature: if you assign a callable to restype, then the return type of the C function will be treated as int, and this int will be passed to the callable, and the result is returned.
https://github.com/llvm/llvm-project/pull/101941
More information about the cfe-commits
mailing list