Skip to content

Use initializer lists with std::min and std::max where possible #25340

@llvmbot

Description

@llvmbot
Bugzilla Link 24966
Version unspecified
OS All
Reporter LLVM Bugzilla Contributor
CC @EugeneZelenko

Extended Description

As a C++ developer I want cases where std::max is used to find the max value between more than three items by using repeated calls to std::max to be replaced by a single call to std::max accepting an initializer list so that my code gains is slightly more performant.

Metadata

Metadata

Assignees

Labels

bugzillaIssues migrated from bugzillacheck-requestRequest for a new check in clang-tidyclang-tidygood first issuehttps://github.com/llvm/llvm-project/contribute

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions