-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillacheck-requestRequest for a new check in clang-tidyRequest for a new check in clang-tidyclang-tidy
Description
| Bugzilla Link | 39120 |
| Version | unspecified |
| OS | All |
| CC | @JonasToth |
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
- automatically detect these cases
- enforce readability by providing diagnostics later on
Metadata
Metadata
Assignees
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillacheck-requestRequest for a new check in clang-tidyRequest for a new check in clang-tidyclang-tidy