Skip to content
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

templates: fix issues with spaces #221

Merged
merged 1 commit into from
Jan 13, 2025
Merged

templates: fix issues with spaces #221

merged 1 commit into from
Jan 13, 2025

Conversation

iMichka
Copy link
Contributor

@iMichka iMichka commented Dec 19, 2024

I have seen different scenarios regarding spaces in templates.
On some platforms there might be spaces, on some others not.

The biggest changes are in:
src/pygccxml/parser/scanner.py -> replace spaces that are actually coming from the xml file
src/pygccxml/declarations/pattern_parser.py -> remove spaces

Of course all the tests had to be adjusted

This "might" be a breaking change if you used to compare declarations manually,
but from a pygccxml point of view all comparisons / search functions are still
working as before.

@iMichka iMichka force-pushed the test-print branch 12 times, most recently from d0a11a1 to 7b51283 Compare December 21, 2024 07:53
@iMichka iMichka changed the title scanner: debug spaces in templates templates: fix spaces issues Dec 21, 2024
@iMichka iMichka force-pushed the test-print branch 2 times, most recently from 160d78b to c51a68b Compare December 22, 2024 08:42
@iMichka iMichka force-pushed the test-print branch 3 times, most recently from 09364fb to 0636b4f Compare January 13, 2025 19:49
@iMichka iMichka changed the title templates: fix spaces issues templates: fix space issues Jan 13, 2025
@iMichka iMichka changed the title templates: fix space issues templates: fix issues with spaces Jan 13, 2025
I have seen different scenarios regarding spaces in templates.
On some platforms there might be spaces, on some others not.

The biggest changes are in:
src/pygccxml/parser/scanner.py -> replace spaces that are actually coming from the xml file
src/pygccxml/declarations/pattern_parser.py -> remove spaces

Of course all the tests had to be adjusted

This "might" be a breaking change if you used to compare declarations manually,
but from a pygccxml point of view all comparisons / search functions are still
working as before.
@iMichka iMichka merged commit 4beedf5 into develop Jan 13, 2025
7 of 8 checks passed
@iMichka iMichka deleted the test-print branch January 13, 2025 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant