Skip to content

readability-simplify-boolean-expr: provide number of returns if expression found in return #25304

@EugeneZelenko

Description

@EugeneZelenko
Bugzilla Link 24930
Version unspecified
OS All
CC @LegalizeAdulthood

Extended Description

I think will be good idea to output number of return statements in function if readability-simplify-boolean-expr detect expression in return statements.

There are a lot of places in LLVM/Clang code with multiple returns, so fixing readability-simplify-boolean-expr may be unreasonable, since new exit points could be added in future.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclang-tidyenhancementImproving things as opposed to bug fixing, e.g. new or missing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions