Skip to content

[clang-tidy] Check request: readability-use-initializer-list-for-minmax #145196

Closed
@denzor200

Description

@denzor200

Need a check that will find nested calls of std::min or std::max. The check will suggest to use overloaded for std::initializer_list versions.

BEFORE:

std::min(std::min(a, b), std::min(c, d));

AFTER:

std::min({a, b, c, d});

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions