New check suggestion: use LLVM STLExtras range-based API #38468
Labels
bugzilla
Issues migrated from bugzilla
check-request
Request for a new check in clang-tidy
clang-tidy
Extended Description
LLVM has include/llvm/STLExtras.h full of Standard Library function replacements with more convenient API leveraging ranges, such as
void llvm::sort (Container &&C)
void llvm::sort (Container &&C, Compare Comp)
auto llvm::find (R &&Range, const T &Val) -> decltype(adl_begin(Range))
UnaryPredicate llvm::for_each (R &&Range, UnaryPredicate P)
...
There are several patches with manual cleanups (D52576, D52650) and it would be nice to
The text was updated successfully, but these errors were encountered: