[clang] [Clang] Implement diagnostics for why is_empty is false (PR #145044)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 23 08:26:08 PDT 2025


================
@@ -1787,6 +1788,11 @@ def note_unsatisfied_trait_reason
            "%NonReplaceableField{has a non-replaceable member %1 of type %2}|"
            "%NTCBase{has a non-trivially-copyable base %1}|"
            "%NTCField{has a non-trivially-copyable member %1 of type %2}|"
+           "%NonEmptyMember{has a non-static data member %1 of type %2}|"
+           "%VirtualFunction{has a virtual function %1}|"
+           "%VirtualBase{has a virtual base class %1}|"
+           "%NonEmptyBase{has a base class %1 that is not empty}|"
+           "%ZeroLengthField{field %1 is a non-zero-length bit-field}|"
----------------
AaronBallman wrote:

Nothing emits this diagnostic?

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


More information about the cfe-commits mailing list