Skip to content

[cxx-interop] Remove code from SwiftifyImport that drops _const-suffix #79756

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 1 commit into from
Mar 5, 2025

Conversation

j-hui
Copy link
Contributor

@j-hui j-hui commented Mar 4, 2025

This was introduced in 1405520 in an attempt to be accommodate existing interfaces with the _const scheme, but we shouldn't need to support such textual interfaces anyway since the _const suffix only appears in C++ code (which shouldn't be part of a resilient interface).

For newly generated interfaces, dropQualifierSuffix doesn't do anything since the code that generates the suffix is now gone.

This was introduced in 1405520 in an
attempt to be accommodate existing interfaces with the _const scheme,
but we shouldn't need to support such textual interfaces anyway since
the _const suffix only appears in C++ code (which shouldn't be part of
a resilient interface).

For newly generated interfaces, dropQualifierSuffix doesn't do anything
since the code that generates the suffix is now gone.
@j-hui j-hui requested a review from Xazax-hun March 4, 2025 00:16
@j-hui
Copy link
Contributor Author

j-hui commented Mar 4, 2025

@swift-ci please smoke test

Copy link
Contributor

@Xazax-hun Xazax-hun left a comment

Choose a reason for hiding this comment

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

LG, thanks!

@j-hui j-hui merged commit 5b4252a into swiftlang:main Mar 5, 2025
3 checks passed
@j-hui j-hui deleted the begone-_const-suffix branch March 5, 2025 17:06
@j-hui j-hui added the c++ interop Feature: Interoperability with C++ label Mar 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ interop Feature: Interoperability with C++
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants