robotpy-cppheaderparser
robotpy-cppheaderparser copied to clipboard
DEPRECATED: use cxxheaderparser instead
Adds support for decltypes in return types and method parameter types. Previously the parser was thrown off by the inclusion of the extra parenthesis used with `decltype()`
``` typedef enum _WSACOMPLETIONTYPE { NSP_NOTIFY_IMMEDIATELY = 0, NSP_NOTIFY_HWND, NSP_NOTIFY_EVENT, NSP_NOTIFY_PORT, NSP_NOTIFY_APC, } WSACOMPLETIONTYPE, *PWSACOMPLETIONTYPE, FAR * LPWSACOMPLETIONTYPE; ``` This is detailed exception information: ``` Connected to pydev debugger (build...
I am trying to parse C structs which contain array's defined using variables. The single dimension arrays are parsed correctly, i.e. long my1dArray[SOME_VAR]; which returns something like: 'array_size': 'SOME_VAR' However,...
I believe this is the root cause of https://github.com/robotpy/robotpy-wpimath/issues/7. Looks like we have workarounds for this all over the place in the RobotPy generation YAML files.
If you try parsing a class containing a variable-list which has more then one keyword like below ` class Test { public: int* test1, * test2, * test3; }; `...
Basically what the title says, but here is an example: CppHeaderParser will fail to parse code like below: ```` namespace i { struct Human { int t1; }; } namespace...
``` class Foo { std::function fn; }; ``` Is a function. The following would be interpreted incorrectly also, and I imagine adding function parameters would break also: ``` class Foo...
Copied from: https://sourceforge.net/p/cppheaderparser/bugs/65/ Reported by: https://sourceforge.net/u/phlibi/ Enum values have inserted a space between the numeric sign and the number: ``` h=CppHeaderParser.CppHeader('''enum { FOO = -123 }; ''', argType='string') print(h.enums) ```...
Hello everyone! Thank you for maintaining this library, and fixing various bugs with the original library. I am trying to parse headers with a anonymous union defined inside a struct...
``` template class Int {}; class MyInt : Int>8)> {}; ```