Skip to content

Move INTEGER/REAL/other accessors out of loops #7623

@aitap

Description

@aitap

We are always so picky about moving INTEGER out of loops, but apparently here we did not care yet.

Originally posted by @ben-schwen in #7598 (comment)

It might be possible to write a linter that detects some cases where the expression in accessor(expression) does not depend on the current loop iteration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    code-qualityIssues related to improving code quality/readability

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions