[PATCH] D143891: [Clang] Adjust triviality computation in QualType::isTrivialType to C++20 cases.

Corentin Jabot via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 21 08:23:35 PST 2023


cor3ntin added a comment.

This makes sense to me as is. The check `ClassDecl->hasTrivialDefaultConstructor() && !ClassDecl->hasNonTrivialDefaultConstructor()` can only be different from status quo in C++20.
Changing `isTrivial` would be a lot more involved change that should not be in scope of this PR


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D143891/new/

https://reviews.llvm.org/D143891



More information about the cfe-commits mailing list