[PATCH] D103900: [llvm] Add enum iteration to Sequence
Clement Courbet via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 23 02:31:17 PDT 2021
courbet added inline comments.
================
Comment at: llvm/include/llvm/ADT/Sequence.h:220
+/// storage type for `T`. That is, in case of `T` being an enum, `End` must be
+/// different from the maximum value of `std::underlying_type<T>::type`.
+template <typename T> auto seq_inclusive(T Begin, T End) {
----------------
Maybe also note that all enum values are generated, even those that do not appear in the enumerator list ?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D103900/new/
https://reviews.llvm.org/D103900
More information about the llvm-commits
mailing list