-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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!
@fantexi023 Are you still working on this? |
No description provided.