Skip to content

Fix lambda calls, parameters, captures and namespace-scope lambdas - #501

Merged
nunoplopes merged 7 commits into
Cpp2Rust:masterfrom
lucic71:2-lambda-fixes
Oct 10, 2026
Merged

nunoplopes merged 7 commits into
Cpp2Rust:masterfrom
lucic71:2-lambda-fixes

Conversation

@lucic71

@lucic71 lucic71 commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

In VisitCallExpr convert the arguments of the operator call in Unboxed context to avoid unnecessary Value boxes
Use ConvertVarDeclSkipInit to convert the params of the operator call so that it can add mut where needed
PushConstInitializer(false) before converting the body of lambda to fix translation of global lambdas
Call the move constructor when the lambda is moved
Fix generic lambdas with no specialisations in libcc2rs-macros
Fix lambda in lambda syntax in libcc2rs-macros

@nunoplopes
nunoplopes merged commit 87c5fca into Cpp2Rust:master Oct 10, 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