Skip to content

Conversation

@krystophny
Copy link
Contributor

Summary

  • extract program/module/interface/block-data codegen into focused modules and trim codegen_declarations_programs.f90
  • introduce reusable utilities for arena lookups, grouped declarations, character handling, and import ordering
  • update codegen_utilities to re-export the new helpers and remove the legacy monolith

Verification

  • make test
    • PASS: All function parameter parsing tests passed!

Two functions violated the 100-line hard limit:
- generate_grouped_body: 144 lines -> 77 lines
- generate_grouped_body_with_params: 389 lines -> 42 lines

Changes:
- Extract statement processing helpers in codegen_grouped_body
- Create codegen_grouped_body_params_helpers module
- Split massive parameter processing into focused subroutines
- All tests pass, functionality preserved

Resolves CLAUDE.md ZERO TOLERANCE violation.
@krystophny krystophny merged commit 355e59b into main Oct 26, 2025
2 checks passed
@krystophny krystophny deleted the fix/issue-1908-refactor-codegen-declarations-programs branch October 26, 2025 17:13
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.

1 participant