================ @@ -107,6 +107,10 @@ def NonBitField : SubsetSubject<Field, [{!S->isBitField()}], "non-bit-field non-static data members">; +def BitField : SubsetSubject<Field, + [{S->isBitField()}], + "bit-field non-static data members">; ---------------- erichkeane wrote:
I don't know how much this text helps here, the diagnostic specifying 'non static' seems a little silly. The `NonBitField` one is important because it applies to non-static data members that ARE NOT bitfields. But in this case, 'must be a bitfield' also implies 'non static'. https://github.com/llvm/llvm-project/pull/69104 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits