Skip to content

Fix inline local declarations in method arguments#232

Open
BigQ749 wants to merge 1 commit into
Syncleus:masterfrom
BigQ749:codex/issue-97-inline-local-declaration
Open

Fix inline local declarations in method arguments#232
BigQ749 wants to merge 1 commit into
Syncleus:masterfrom
BigQ749:codex/issue-97-inline-local-declaration

Conversation

@BigQ749

@BigQ749 BigQ749 commented Jul 16, 2026

Copy link
Copy Markdown

Summary

  • Hoist inline local declarations to the start of the generated method body.
  • Emit the inline expression as an assignment (for example, z=1) instead of a declaration inside a method-call argument.
  • Update AssignAndPassAsParameterSimpleTest to cover successful OpenCL generation and caching.

Validation

  • git diff --check passes.
  • Source delimiter checks pass.
  • Full Maven/JUnit execution was not available in the local environment because Java and Maven are not installed.

Closes #97.

Note: I noticed other open PRs linked to this issue; please keep whichever implementation best fits the project's review and history.

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.

[Bounty $20] Inline declarations throw exception.

1 participant