You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Incorrectly parsing inheritance with multiple template arguments #27
That's not terribly surprising, the template support code is really quite terrible! Happy to accept any fixes. It looks like there's a testcase that's pretty close, so it might not be too bad to fix if you're up for it:
I've pushed a testcase for this at https://github.com/robotpy/robotpy-cppheaderparser/tree/bug-27, but I don't currently have time to take a further look. It appears the inheritance parsing code just doesn't do templates at all -- which I suspect is probably true elsewhere.
I'm surprised there isn't a reusable function somewhere that just parses type definitions... but the code is really quite messy, so I shouldn't be surprised. 🤷♂️
Activity
virtuald commentedon Nov 15, 2019
That's not terribly surprising, the template support code is really quite terrible! Happy to accept any fixes. It looks like there's a testcase that's pretty close, so it might not be too bad to fix if you're up for it:
robotpy-cppheaderparser/CppHeaderParser/test/TestSampleClass.h
Line 674 in 8ca08c1
Add testcase for #27
virtuald commentedon Nov 15, 2019
I've pushed a testcase for this at https://github.com/robotpy/robotpy-cppheaderparser/tree/bug-27, but I don't currently have time to take a further look. It appears the inheritance parsing code just doesn't do templates at all -- which I suspect is probably true elsewhere.
I'm surprised there isn't a reusable function somewhere that just parses type definitions... but the code is really quite messy, so I shouldn't be surprised. 🤷♂️
virtuald commentedon Nov 18, 2019
I've got a fix for this ready, just have to fix other bugs.
Rewrite class declaration/base parser
Rewrite class declaration/base parser
virtuald commentedon Nov 19, 2019
Please give #28 a shot and let me know if that addresses the problem.
rainman110 commentedon Nov 19, 2019
Thank you! I'll let you know whether this fixes our problem. 👍