Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extracted call/cast replacement into separate pass #1499

Merged
merged 2 commits into from
Apr 5, 2024

Commits on Apr 5, 2024

  1. Extracted call/cast replacement into separate pass

    Multiple languages, such as Go and C++ support "functional style casts", in the form of int(5). During the frontend parsing, they are indistinguishable from function calls. Therefore, we need to do a cleanup after all types are known but before other passes are invoked that replace those calls with casts. The proposed solution is to include a new language trait HasFuntionalCasts and to move the logic from the GoExtraPass into a separate, language-neutral one.
    
    Fixes #1487
    oxisto committed Apr 5, 2024
    Configuration menu
    Copy the full SHA
    2b838ff View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    95aa368 View commit details
    Browse the repository at this point in the history