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

Do a better job of detecting when enums mess with sizes #1225

Merged
merged 3 commits into from
Sep 7, 2022

Conversation

sotteson1
Copy link
Contributor

@sotteson1 sotteson1 commented Sep 6, 2022

Do a better job of detecting when enums change the sizes of parameters or fields
Fix up some issues the new logic detected

Fixes #1221

mikebattista
mikebattista previously approved these changes Sep 6, 2022
{
"name": "ISC_REQ_FLAGS",
"flags": true,
"autoPopulate": {
"filter": "ISC_REQ_",
"filter": "ISC_REQ_(?!MESSAGES|DEFERRED_CRED_VALIDATION)",
Copy link
Contributor

Choose a reason for hiding this comment

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

Cool! I didn't know you could do that!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wasn't sure how to do it until I needed it. :)

mikebattista
mikebattista previously approved these changes Sep 7, 2022
@sotteson1 sotteson1 merged commit c24edb2 into main Sep 7, 2022
@sotteson1 sotteson1 deleted the user/sotteson1/fix-enum-breaking-sizes branch September 7, 2022 05:28
case "ULONG64":
case "INT64":
case "UINT64":
case "__int64":
Copy link

@KalleOlaviNiemitalo KalleOlaviNiemitalo Dec 20, 2022

Choose a reason for hiding this comment

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

“__int64” cannot ever match, because of ToUpperInvariant. Filed as #1418.

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.

Various enums have the incorrect underlying type making certain functions un-linkable and un-callable
4 participants