Skip to content

[ODRHash diagnostics] Cherry-picking another series of ODRHash commits. #5271

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 2 commits into from
Sep 12, 2022

Conversation

vsapsai
Copy link

@vsapsai vsapsai commented Sep 9, 2022

No description provided.

… in `DiagnoseODRMismatch` into a lambda. NFC.

Differential Revision: https://reviews.llvm.org/D128489

(cherry picked from commit 2ceb9c3)
Specifically, making the following changes:
* Turn lambdas calculating ODR hashes into static functions.
* Move `ODRCXXRecordDifference` where it is used.
* Rename some variables and move some lines of code.
* Replace `auto` with explicit type when the deduced type is not mentioned.
* Add `const` for unmodified objects, so we can pass them to more functions.

Differential Revision: https://reviews.llvm.org/D128690

(cherry picked from commit f693874)
@vsapsai
Copy link
Author

vsapsai commented Sep 9, 2022

@swift-ci test

@vsapsai vsapsai merged commit fecabcd into stable/20220421 Sep 12, 2022
@vsapsai vsapsai deleted the eng/compare-objcprotocols-cherry-pick-02 branch September 12, 2022 17:36
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.

1 participant