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

Ensure constructor cppName is class name #739

Merged
merged 2 commits into from
Jan 22, 2024

Conversation

HGuillemet
Copy link
Contributor

Ensure that, in type(), if type.constructor is set to true, then the cppName is the cppName of the class, whatever is in the infoMap.
This prevents, for instance, if we have class C, and an info about the constructorC::C in the info map, that the constructor
cppName is set to C::C after a call to context.qualify.

Similarly, in function(), only call context.qualify for normal functions, not constructors. The qualification work has
already been performed in type() and the constructor cppName should remain the type cppName.

Fixes part of #735.

Regression tests: no changes in existing presets.

@saudet saudet merged commit 26eb486 into bytedeco:master Jan 22, 2024
11 checks passed
@HGuillemet HGuillemet deleted the fix_constructor_name_no_ns branch January 22, 2024 11:15
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.

2 participants