[clang] [Clang] Added explanation why a is trivial copyable evaluated to false. (PR #142341)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 2 07:02:33 PDT 2025


================
@@ -1776,6 +1777,8 @@ def note_unsatisfied_trait_reason
            "%VBase{has a virtual base %1}|"
            "%NRBase{has a non-trivially-relocatable base %1}|"
            "%NRField{has a non-trivially-relocatable member %1 of type %2}|"
+           "%NTCBase{has a non-trivially-copyable base %1}|"
----------------
erichkeane wrote:

The enum names here are inconsistent... `non-trivially-relocatable` took only `NR` whereas this is taking `NTC`.  That said, I VASTLY prefer the `T` be present.  Not in the scope here of course, but a followup tochange those `NR` to `NTR` perhaps is valuable.

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


More information about the cfe-commits mailing list