Skip to content

Conversation

@harsszegi
Copy link

For some reason libclang adds the same constructors multiple times when doing the visit on a 'using' expression. This change makes sure that only "unique" functions / constructors are being added.

cppClass.Constructors.Add(cppFunction);
}
}
else

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] You can merge the else and the if into an else if.

For some reason libclang adds the same constructors multiple times when doing
the visit on a 'using' expression. This change makes sure that only "unique"
functions / constructors are being added.
@harsszegi harsszegi force-pushed the bugfix/visit_unique_constructors branch from eb2ede4 to 414a4b8 Compare December 6, 2023 08:33
@harsszegi harsszegi merged commit 84bcbd6 into development Dec 6, 2023
@harsszegi harsszegi deleted the bugfix/visit_unique_constructors branch December 6, 2023 08:35
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.

4 participants