[llvm] [BitmaskEnum] Add support for shift operators. (PR #118007)

Kerry McLaughlin via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 28 07:40:58 PST 2024


================
@@ -85,9 +85,11 @@
   using ::llvm::BitmaskEnumDetail::operator|;                                  \
   using ::llvm::BitmaskEnumDetail::operator&;                                  \
   using ::llvm::BitmaskEnumDetail::operator^;                                  \
+  using ::llvm::BitmaskEnumDetail::operator<<;                                 \
   using ::llvm::BitmaskEnumDetail::operator|=;                                 \
   using ::llvm::BitmaskEnumDetail::operator&=;                                 \
   using ::llvm::BitmaskEnumDetail::operator^=;                                 \
+  using ::llvm::BitmaskEnumDetail::operator<<=;                                \
----------------
kmclaughlin-arm wrote:

In the commit message you mention `operator>>`, should this be supported here too?

https://github.com/llvm/llvm-project/pull/118007


More information about the llvm-commits mailing list