Skip to content

Add tests to rename C++ symbols exposed to Swift #1404

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
Jun 4, 2024

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Jun 2, 2024

This exposes an issue where we wouldn’t rename a symbol on the clang side f a symbol was only defined in a header and not a C/C++/... file. In that case we failed to determine the language of the header file because there was no unit file that contained the header file. The cleaner solution here is to ask for the symbol provider of each occurrence directly.

rdar://127391127

@ahoppen ahoppen requested a review from benlangmuir as a code owner June 2, 2024 17:17
@ahoppen ahoppen requested review from bnbarham and hamishknight June 2, 2024 17:17
@ahoppen
Copy link
Member Author

ahoppen commented Jun 3, 2024

swiftlang/indexstore-db#200

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Jun 3, 2024

swiftlang/indexstore-db#200

@swift-ci Please test Windows

@ahoppen ahoppen changed the title Add tests to rename C++ symbols exposed to Swift 🚥 indexstore-db#200 Add tests to rename C++ symbols exposed to Swift Jun 4, 2024
This exposes an issue where we wouldn’t rename a symbol on the clang side f a symbol was only defined in a header and not a C/C++/... file. In that case we failed to determine the language of the header file because there was no unit file that contained the header file. The cleaner solution here is to ask for the symbol provider of each occurrence directly.

rdar://127391127
@ahoppen ahoppen force-pushed the cpp-to-swift-rename-tests branch from fa768f5 to 5b119b7 Compare June 4, 2024 00:58
@ahoppen
Copy link
Member Author

ahoppen commented Jun 4, 2024

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Jun 4, 2024

@swift-ci Please test Windows

@ahoppen ahoppen merged commit e4d8331 into swiftlang:main Jun 4, 2024
3 checks passed
@ahoppen ahoppen deleted the cpp-to-swift-rename-tests branch June 4, 2024 04:20
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.

2 participants