Skip to content

[Distributed] Metadata: Refactor demangling of function types from method mangled names #40864

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

Merged
merged 2 commits into from
Jan 16, 2022

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jan 14, 2022

  • Extract common logic across count, result and parameter type demangling
  • Add support for demangling of generic functions
  • Fix handling of single unlabeled parameter types

@xedin xedin requested a review from ktoso January 14, 2022 23:38
xedin added 2 commits January 14, 2022 15:39
…thod mangled names

- Extract common logic across count, result and parameter type demangling
- Add support for demangling of generic functions
- Fix handling of single unlabeled parameter types
@xedin xedin force-pushed the fixes-for-dist-metadata-retrieval branch from 4231888 to 4746370 Compare January 14, 2022 23:39
@xedin
Copy link
Contributor Author

xedin commented Jan 14, 2022

@swift-ci please test

@xedin xedin added the distributed Feature → concurrency: distributed actor label Jan 15, 2022
/// representation.
static NodePointer extractFunctionTypeFromMethod(Demangler &demangler,
const char *typeNameStart,
size_t typeNameLength) {
Copy link
Contributor

@ktoso ktoso Jan 16, 2022

Choose a reason for hiding this comment

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

oh great, nice refactor 👍

Copy link
Contributor

@ktoso ktoso left a comment

Choose a reason for hiding this comment

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

Thanks, very nice cleanup 👍

@xedin xedin merged commit 847b6c0 into swiftlang:main Jan 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
distributed Feature → concurrency: distributed actor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants