Skip to content

transpile: Make unwrapping Paren explicit#1825

Open
Rua wants to merge 5 commits into
immunant:masterfrom
Rua:index_unwrap_parens
Open

transpile: Make unwrapping Paren explicit#1825
Rua wants to merge 5 commits into
immunant:masterfrom
Rua:index_unwrap_parens

Conversation

@Rua
Copy link
Copy Markdown
Contributor

@Rua Rua commented May 23, 2026

The indexing operation for CExprId now no longer silently unwraps parentheses. I've replaced all indexing operations with index_unwrap_parens so that it's immediately obvious what's going on. Certain uses of it can later be refactored to use plain indexing if it's determined to be safe.

@Rua Rua force-pushed the index_unwrap_parens branch from f304767 to 3902ac2 Compare May 23, 2026 13:04
@Rua Rua changed the title transpile: Make unwrapping Paren explicit, do not unwrap in convert_expr transpile: Make unwrapping Paren explicit May 23, 2026
@Rua Rua force-pushed the index_unwrap_parens branch from 3902ac2 to af3fdeb Compare May 23, 2026 13:30
@Rua Rua force-pushed the index_unwrap_parens branch from af3fdeb to 9351ea9 Compare May 23, 2026 13:31
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.

Macro replacement fails if the macro name is in parentheses

1 participant