HomePhabricator

[clang-tidy] add new check readability-use-anyofallof

Authored by mgehre on Oct 2 2019, 3:39 PM.

Description

[clang-tidy] add new check readability-use-anyofallof

Summary:
Finds range-based for loops that can be replaced by a call to `std::any_of` or
`std::all_of. In C++ 20 mode, suggests std::ranges::any_of` or
`std::ranges::all_of`.
For now, no fixits are produced.

Reviewers: aaron.ballman, alexfh, hokein

Subscribers: mgorny, xazax.hun, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D77572

Details