Closed halleysfifthinc closed 8 months ago
Thanks for your contribution. See the comment above concerning the code organization.
It seems that GitHub lost your other comment?
Maybe you need to be logged in to see it. The comment was that the call to clang C++ API should be moved in a function put in the clang-ext.cpp. The idea is that all workarounds to deal with libclang limitations are grouped in this file and that they will replaced by proper libclang call when the libclang library will support the missing feature.
Weird that I'm not seeing it. :man_shrugging: Anyways, sounds good re: keeping clang workarounds in clang-ext.cpp. I will work on reorganizing.
Let me know if you want more of that separated out into libclang-ext, I moved what seemed to me to be the obvious "working around clang" parts.
Integral type parameters require special handling in clang to extract/reproduce, and CxxWrap needs a specialization of
BuildParameterList
for the parametric type with the integral parameters.I don't know if this will work for dependent(?) integral type parameters, along the lines of
MyClass<typename T, T I>
.