Open
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