[clang] [Clang] Added explanation why is_trivially_copy_constructible evaluated to false (PR #225487)
Younan Zhang via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 12 02:18:25 PST 2026
================
@@ -2794,6 +2882,22 @@ void Sema::DiagnoseTypeTraitDetails(const Expr *E) {
case UTT_IsAbstract:
DiagnoseNonAbstractReason(*this, E->getBeginLoc(), Args[0]);
break;
+ case TT_IsTriviallyConstructible:
+ if (StdName == TriviallyCopyConstructibleName) {
----------------
zyn0217 wrote:
```suggestion
if (StdName == "is_trivially_copy_constructible") {
```
https://github.com/llvm/llvm-project/pull/225487
More information about the cfe-commits
mailing list