-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[NativeAOT] Remove obsolete C++ name mangling #96983
Conversation
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas Issue Detailsnull
|
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.
Thanks
@@ -69,7 +64,7 @@ public override string SanitizeName(string s, bool typeName = false) | |||
sb ??= new StringBuilder(s, 0, i, s.Length); | |||
|
|||
// For CppCodeGen, replace "." (C# namespace separator) with "::" (C++ namespace separator) | |||
if (typeName && c == '.' && _mangleForCplusPlus) |
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.
Shouldn't this whole if be removed ? In other places you remove code using the assumption that _mangleForCplusPlus is always false but now code in this if will be executed when it wasn't before.
(I don't have any context here so this change might be right. I just saw the change and I found it weird.)
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.
Yes, would be nice to delete the comment above too and other references to C++ in this file
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 are right. Thanks for noticing!
No description provided.