rnk marked an inline comment as done.
rnk added inline comments.

================
Comment at: test/Sema/warn-bitfield-enum-conversion.c:3
+
+enum TwoBits { Hi1 = 3 } two_bits;
+enum TwoBitsSigned { Lo2 = -2, Hi2 = 1 } two_bits_signed;
----------------
thakis wrote:
> can you add an enum with an explicit underlying type? will this warning 
> always fire for those?
I was worried for a moment, but it looks like `EnumDecl::getNumPositiveBits` 
does what I want and ignores the fixed underlying type.


https://reviews.llvm.org/D30923



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to