Skip to content

Avoid implicit autoderef on dereferences coming from rules#107

Merged
nunoplopes merged 5 commits into
Cpp2Rust:masterfrom
lucic71:autoderef
May 17, 2026
Merged

Avoid implicit autoderef on dereferences coming from rules#107
nunoplopes merged 5 commits into
Cpp2Rust:masterfrom
lucic71:autoderef

Conversation

@lucic71
Copy link
Copy Markdown
Contributor

@lucic71 lucic71 commented May 16, 2026

Adds the is_index_base field in the IR for indexed arguments, for example in a0[a1], a0 is decorated with is_index_base = true. Inside Converter, when a deref is needed and is_index_base == true, then explicit autoref is triggered.

@nunoplopes nunoplopes merged commit 0d01b4f into Cpp2Rust:master May 17, 2026
9 checks passed
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