[clang] [clang] Implement a bitwise_copyable builtin type trait. (PR #86512)
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Wed May 29 06:53:06 PDT 2024
================
@@ -2749,6 +2749,17 @@ bool QualType::isTriviallyCopyableType(const ASTContext &Context) const {
/*IsCopyConstructible=*/false);
}
+bool QualType::isBitwiseCloneableType(const ASTContext & Context) const {
+ if (const auto *RD = getCanonicalType()->getAsCXXRecordDecl()) {
----------------
hokein wrote:
Agree, for the safety reason, we should disable it for NonTrivialObjCLifetime. Done.
https://github.com/llvm/llvm-project/pull/86512
More information about the cfe-commits
mailing list