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

feat(demangle): Update Swift demangler to Swift 5.10 #854

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

fantexi023
Copy link

No description provided.

@fantexi023 fantexi023 changed the title Update Swift-demangle 5.10 feat(demangle): Update Swift demangler to Swift 5.10 Jul 18, 2024
Copy link
Member

@Swatinem Swatinem left a comment

Choose a reason for hiding this comment

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

Thank you for taking a look at this!
We have evidently not touched this code in quite a while, because updating it is quite cumbersome.

CI fails to compile with the updated code, but I can’t really make out what exactly the source of the problem is. Other than that, I added another comment related to a small patch that we applied to the swift code, which you should ideally carry forward.

bool ShortenArchetype = false;
bool ShowPrivateDiscriminators = true;
bool ShowFunctionArgumentTypes = true;
+ bool ShowFunctionReturnType = true;
Copy link
Member

Choose a reason for hiding this comment

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

You mentioned this in the changed swiftdemangle.cpp file. This option is indeed not part of upstream Swift, but we patched that in via this small patch here.

Copy link
Author

@fantexi023 fantexi023 Jul 19, 2024

Choose a reason for hiding this comment

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

Thank you for your reply.
I also saw that the CI process gave five errors, among which the problem of Rust Test on macos-latest should be that the SWIFT_STDLIB_HAS_TYPE_PRINTING did not take effect, which may be caused by the passing exception of CMakeLists.txt. I cancelled the restriction of SWIFT_STDLIB_HAS_TYPE_PRINTING this macro locally. The other four problems correspond to the same error, but I did not encounter this error on my own Mac.

Copy link
Author

Choose a reason for hiding this comment

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

You mentioned this in the changed swiftdemangle.cpp file. This option is indeed not part of upstream Swift, but we patched that in via this small patch here.

yeah, I do understand your explanation for ShowFunctionReturnType. TXS!

@loewenheim loewenheim self-assigned this Jul 29, 2024
@loewenheim
Copy link
Contributor

@fantexi023 Are you still working on this?

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.

3 participants