[clang] [Clang] Implement diagnostics for why `std::is_standard_layout` is false (PR #144161)
Corentin Jabot via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 25 05:26:39 PDT 2025
================
@@ -1787,6 +1788,13 @@ 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}|"
+ "%NonStdLayoutBase{has a non-standard-layout base %1}|"
----------------
cor3ntin wrote:
```suggestion
"%NonStandardLayoutBase{has a non-standard-layout base %1}|"
```
(std is a confusing abbreviation in the context of C++)
https://github.com/llvm/llvm-project/pull/144161
More information about the cfe-commits
mailing list