Skip to content

ClangImporter: NFC: simplify importFullName calls #38764

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
Aug 15, 2021

Conversation

egorzhdan
Copy link
Contributor

@egorzhdan egorzhdan commented Aug 5, 2021

This is just a cleanup of importFullName invocations, discussed here: #37695 (comment)

This change makes importFullName return a pair of a canonical & alternative names instead of having one of them passed as a parameter.

@egorzhdan egorzhdan requested a review from zoecarver August 5, 2021 18:43
@egorzhdan
Copy link
Contributor Author

@swift-ci please smoke test

@CodaFi
Copy link
Contributor

CodaFi commented Aug 11, 2021

How about we refactor importFullName to return a std::pair and have all the callers ignoring it pass std::ignore to std::tie?

This is just a cleanup of `importFullName` invocations, discussed here: swiftlang#37695 (comment)

This change makes `importFullName` return a pair of a canonical & alternative names instead of having one of them passed as a parameter.
@egorzhdan
Copy link
Contributor Author

@CodaFi sounds good, that seems to be a cleaner solution.

@egorzhdan egorzhdan force-pushed the clangimporter-cleanup branch from 15edc2f to 4a41405 Compare August 11, 2021 20:13
@egorzhdan egorzhdan requested a review from CodaFi August 11, 2021 20:14
@egorzhdan
Copy link
Contributor Author

@swift-ci please smoke test

@CodaFi CodaFi merged commit 812227f into swiftlang:main Aug 15, 2021
@egorzhdan egorzhdan deleted the clangimporter-cleanup branch August 23, 2021 14:59
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