Skip to content

Use get_category consistently in cppwinrt implementation#452

Merged
kennykerr merged 4 commits into
masterfrom
kennykerr-category
May 31, 2019
Merged

Use get_category consistently in cppwinrt implementation#452
kennykerr merged 4 commits into
masterfrom
kennykerr-category

Conversation

@kennykerr

Copy link
Copy Markdown
Contributor

Some time back I introduced the get_category helper to solve some more challenging parameter categorization issues in the cppwinrt compiler. This made the clunky can_take_ownership_of_return_type and wrap_abi helper functions redundant. This update just removes those functions and makes use of get_category throughout. Internal bug #21214501.

@devhawk

devhawk commented May 31, 2019

Copy link
Copy Markdown
Contributor

There are a bunch of useful neta reader helpers spread across cppwinrt, pywinrt and other projects. get_category seems like another such useful helper. Can we start a "meta_reader contrib" file in library to host these and stop duplicating effort across tools?

@kennykerr

Copy link
Copy Markdown
Contributor Author

Yes, we should definitely keep an eye out for redundant helpers and fold them into the xlang library if they are widely applicable.

@kennykerr kennykerr merged commit f04ed84 into master May 31, 2019
@kennykerr kennykerr deleted the kennykerr-category branch June 4, 2019 12:36
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