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

Don't rely on empty names to detect anonymous items. #2

Merged
merged 1 commit into from
Jun 4, 2023

Conversation

glowcoil
Copy link
Contributor

@glowcoil glowcoil commented Jun 4, 2023

Currently, we detect anonymous items by checking if their name is an empty string, but newer versions of libclang return names like "(anonymous enum at ...)" in this case. Use clang_Cursor_isAnonymous instead to detect anonymous items explicitly.

Fixes #1.

Currently, we detect anonymous items by checking if their name is an
empty string, but newer versions of libclang return names like
"(anonymous enum at ...)" in this case. Use clang_Cursor_isAnonymous
instead to detect anonymous items explicitly.
@glowcoil glowcoil merged commit ce76b24 into coupler-rs:master Jun 4, 2023
3 checks passed
@glowcoil glowcoil deleted the anonymous-fix branch June 4, 2023 19:42
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.

unnamed enum issue on macos
1 participant