cxxheaderparser
cxxheaderparser copied to clipboard
Modern pure python C++ header parser
Closes #94
### Problem description I think the code is correct and should be parsed by `cxxheaderparser`. But running this code fail with error: `:8: parse error evaluating 'operator': unexpected 'operator', expected...
### Problem description C++20 added the ability to introduce enumerations to current scope with a `using enum` declaration, see https://eel.is/c++draft/enum.udecl Trying to parse it results in ``` :3: parse error...
### Problem description It seems that the new style of alias declarations are not completely implemented. The equivalent typedefs are working as expected. I provide below a short program which...
### Problem description From https://isocpp.org/wiki/faq/pointers-to-members ### C++ code that can't be parsed correctly (please double-check that https://robotpy.github.io/cxxheaderparser/ has the same error) ```text typedef int (Fred::*FredMemFn)(char x, float y); ```
### Problem description Was playing in godbolt and got this to work, but I can't imagine why you'd ever want to do this. ### C++ code that can't be parsed...
Makes type checking less effective. `ParsedTypeModifiers` should be made more explicit too.
``` ClassType className("string param"); ```
Currently all attributes are discarded, I'm sure somebody wants to use them for something. ... I likely won't implement this until I find a need for it, but PR's welcome?
Adds basic support for MSVC int types: - `__int8` - `__int16` - `__int32` - `__int64`