================
@@ -2605,18 +2605,26 @@ bool QualType::isTrivialType(const ASTContext &Context) 
const {
 }
 
 bool QualType::isTriviallyCopyableType(const ASTContext &Context) const {
-  if ((*this)->isArrayType())
-    return Context.getBaseElementType(*this).isTriviallyCopyableType(Context);
+  return isTriviallyCopyableTypeImpl(*this,Context,false);
+}
 
-  if (hasNonTrivialObjCLifetime())
+bool QualType::isTriviallyCopyConstructibleType(const ASTContext &Context) 
const {
+  return isTriviallyCopyableTypeImpl(*this,Context,true);
+}
+
+bool QualType::isTriviallyCopyableTypeImpl(const QualType &type, const 
ASTContext &Context,bool copy_constructible){
----------------
cor3ntin wrote:

By static, I meant something like that. Sorry if that wasn't clear.

https://github.com/llvm/llvm-project/pull/76680
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to