[PATCH] D22279: [ADT] Add FlagsEnum, used to enable bitwise operations on enums without static_cast.

Justin Lebar via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 13 09:36:39 PDT 2016


jlebar added a comment.

I may be missing some important subtlety of C++ name lookup, but I think we don't actually need these shenanigans with the `using`s if we just declare our operator overloads in the global namespace.  So I've done that in this version of the patch.

I've also added tests for enum class.


http://reviews.llvm.org/D22279





More information about the llvm-commits mailing list