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

Fix anonymous struct/union usage in C domain #585

Merged
merged 1 commit into from
Sep 26, 2020

Conversation

utzig
Copy link
Contributor

@utzig utzig commented Sep 24, 2020

Sphinx's C domain parser expects '.' to be used to separate nested names. This is currently broken when there are anonymous structs/unions in the source, where the Doxygen XML provides some nested name with "::@" in it, which fails to be parsed properly. This commit adds a check and does the proper substitution before sending data back to the domain parser.

Sphinx's C domain parser expects '.' to be used to separate nested
names. This is currently broken when there are anonymous structs/unions
in the source, where the Doxygen XML provides some nested name with
"::@" in it, which  fails to be parsed properly. This commit adds a
check and does the proper substitution before sending data back to the
domain parser.

Signed-off-by: Fabio Utzig <fabio.utzig@nordicsemi.no>
@jakobandersen
Copy link
Collaborator

Nice catch. Looks good to me.

@vermeeren vermeeren self-requested a review September 26, 2020 17:27
@vermeeren vermeeren self-assigned this Sep 26, 2020
@vermeeren vermeeren added bug Problem in existing code code Source code labels Sep 26, 2020
@vermeeren vermeeren merged commit 9cb1c3a into breathe-doc:master Sep 26, 2020
vermeeren added a commit that referenced this pull request Sep 26, 2020
@vermeeren
Copy link
Collaborator

@utzig Thanks again, do you want this to be released asap?

@utzig
Copy link
Contributor Author

utzig commented Sep 26, 2020

@utzig Thanks again, do you want this to be released asap?

Would be very nice of you, I am quite sure this is the last Breathe bug I have, so hopefully no longer annoying you! :-)

@vermeeren
Copy link
Collaborator

@utzig Just released v4.22.1 in that case, and the patches are definitely appreciated!

@utzig utzig deleted the fix-c-domain-anon branch October 1, 2020 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Problem in existing code code Source code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants