-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[llvm] [Demangle] Fix MSVC demangling for placeholder return types #106178
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
Conversation
f1bca93
to
f7d7506
Compare
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.
lgtm
Can't you just add these to llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp Lines 2016 to 2040 in 7c188ab
I don't see why you need to create and entirely new node type for something so simple. |
Agreed. I assumed that wouldn't fly since pedantically I'll change the code to just add the two new cases to |
@zmodem Let me know if the new changes in this PR are ok with you. |
…lvm#106178) Properly demangle `_T` and `_P` return type manglings for MSVC 1920+. Also added a unit test for `@` return type that is used when mangling non-template auto placeholder return type function. Tested the output against the undname shipped with MSVC 19.40.
Properly demangle
_T
and_P
return type manglings for MSVC 1920+.Also added a unit test for
@
return type that is used when mangling non-template auto placeholder return type function.Tested the output against the undname shipped with MSVC 19.40.