Skip to content

(c2rust-analyze) Cleanup/simplify visit_cast (extracted from #883) #900

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 10 commits into from
Apr 26, 2023

Conversation

kkysen
Copy link
Contributor

@kkysen kkysen commented Apr 25, 2023

This cleans up and simplifies some of the code from #883 in preparation for the string cast PRs, #739 and #741.

It extracts things into a separate visit_cast method, simplifies a few things, and clarifies exactly which Tys and LTys are from and to in a cast. This makes it easier to understand and read, and makes it simpler to rebase #739 onto it.

@kkysen kkysen requested a review from aneksteind April 25, 2023 22:34
Copy link
Contributor

@aneksteind aneksteind left a comment

Choose a reason for hiding this comment

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

LGTM after the arguments comment is addressed

@kkysen kkysen force-pushed the kkysen/analyze-visit-cast branch from 3906c89 to df6a469 Compare April 26, 2023 16:29
@kkysen kkysen merged commit 4689242 into master Apr 26, 2023
@kkysen kkysen deleted the kkysen/analyze-visit-cast branch April 26, 2023 17:06
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