-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scanner.py: add support for "original_type" attribute of "Argument" XML tag #194
Conversation
Overwrote previous commit to avoid linter complaints. |
…ags in XML. For array args this means avoiding losing the delcared width of the array and having its decl_type show as pointer_t
Overwrote previous commit to fix silly oversight where |
Looks great. Please ignore the macos runner errors, these are pre-existing. Do you think you could add a test for this? Most of the tests are now in the tests folder (ran with pytest), and some legacy tests are in the unitest folder. Either one of these can be extended or a new one can be written. |
Overwrote previous commit to include |
Overwrote previous commit to avoid the stern gaze of the linter. |
Thanks for the test! How quickly do you need this in a new release? I will probably do one before end of 2024, if you need the change in a release faster than that, I can do one next week. |
Thanks for the merge! No rush re a release. I'm working off of a local copy currently and can continue to do so. |
@pdatkinson v2.6.0 is out and contains the change |
@iMichka awesome - thank you! |
scanner.py: add support for "original_type" attribute of "Argument" XML tag. For array args this means avoiding losing the delcared width of the array and having its decl_type show as pointer_t.
Fall back on "type" (current default-no-matter-what) attribute when "original_type" is not present.
XML generated by pygccxml+CastXML:
Behaviour: