standardese / cppast

Library to parse and work with the C++ AST
Other
1.7k stars 165 forks source link

Clang 15 - minor breaking change and opportunity for enhancements #155

Closed waitingtocompile closed 1 year ago

waitingtocompile commented 1 year ago

Clang 15 introduces several new cursor types, exposing a lot of new functionality. However, it also means that concept definitions have been given their own cursor, which is currently unhandled. I'm more than happy to make the fix accounting for the new cursor type, as well as see if there's any enhancements to be applied from the increasced support from libclang, however before I do I'd like guidance on how you would want me to handle backwards compatability.

foonathan commented 1 year ago

I welcome a PR, since I don't have clang 15 at the moment to test it out.

however before I do I'd like guidance on how you would want me to handle backwards compatability.

You can use conditional compilation based on CINDEX_VERSION_MINOR.