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 namespaced destructors and reject unions #1264

Merged
merged 7 commits into from
Apr 14, 2023
Merged

Fix namespaced destructors and reject unions #1264

merged 7 commits into from
Apr 14, 2023

Conversation

adetaylor
Copy link
Collaborator

This commit fixes a few issues reported in #1261 (thanks!)

Specifically,

  • We were correctly refusing to generate POD bindings to unions, but we were rejecting them with a nonsensical error. We now reject with a specific message.
  • Types in namespaces sometimes had misgenerated code to call their C++ destructors.

I also took the opportunity to rework CppNameMap slightly by making some functions members. This is primarily a textual change.

Issue #1261

This commit fixes a few issues reported in #1261 (thanks!)

Specifically,
* We were correctly refusing to generate POD bindings to unions, but we were
  rejecting them with a nonsensical error. We now reject with a specific
  message.
* Types in namespaces sometimes had misgenerated code to call their C++
  destructors.

I also took the opportunity to rework CppNameMap.

Issue #1261
This enables
test_issue_1096c
and
test_type_aliased_anonymous_nested_struct_ignored

to pass. It remains to be seen if this causes failures elsewhere.
@adetaylor adetaylor changed the title Fix namespaced destructors. Fix namespaced destructors and reject unions Apr 14, 2023
@adetaylor adetaylor merged commit bec2301 into main Apr 14, 2023
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