Skip to content

Conversation

@kkysen
Copy link
Contributor

@kkysen kkysen commented Nov 21, 2025

Now that immunant/c2rust#1455 merged, enable reorganize_definitions explicitly (as opposed to implicitly through immunant/c2rust#1451, which we don't want to do because c2rust-refactor isn't installed by default since it doesn't build on stable).

This adds the `reorganize_definitions` transform,
as well as the `rename_unnamed` transform that always seems to accompany it.
For the transpiler, it's not enabled directly,
just using `--reorganize-definitions --disable-refactoring`,
which adds the annotations needed by `reorganize_definitions`
without actually running the refactorer yet.
@kkysen kkysen force-pushed the kkysen/explicitly-run-reorganize-definitions branch from 8b7ba8c to 3b542e9 Compare November 24, 2025 14:46
Copy link
Contributor

@fw-immunant fw-immunant left a comment

Choose a reason for hiding this comment

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

LGTM.

@kkysen kkysen merged commit 4b1498b into master Nov 24, 2025
4 checks passed
@kkysen kkysen deleted the kkysen/explicitly-run-reorganize-definitions branch November 24, 2025 19:08
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.

3 participants