robotpy / robotpy-cppheaderparser

DEPRECATED: use cxxheaderparser instead
Other
123 stars 39 forks source link

Bug: Do not support right defined auto return values #57

Closed alexkutsan closed 3 years ago

alexkutsan commented 3 years ago

Example:

CppHeaderParser.CppHeader("auto foo() -> int ;", argType="string").functions[0]['rtnType']

Expected: int Actual: auto

virtuald commented 3 years ago

Thanks for the input! I'm planning on dropping this fork of CppHeaderParser soon, so I'm not planning on making this fix to CppHeaderParser.

However, I've rewritten CppHeaderParser from the ground up at https://github.com/robotpy/cxxheaderparser, would love some feedback on how usable it is for your usecase. There are still some usability issues and I'm in the process of working through some of them before an initial release on pypi.

I expect cxxheaderparser doesn't handle this correctly either, but it should be easy to address tonight.

alexkutsan commented 3 years ago

I Will try to use robotpy/cxxheaderparse, thanks!

virtuald commented 3 years ago

Fixed in https://github.com/robotpy/cxxheaderparser/pull/2