[clang] Changed Checks from TriviallyCopyable to TriviallyCopyConstructible (PR #76680)
    via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Wed Jan  3 06:15:08 PST 2024
    
    
  
================
@@ -2644,6 +2644,49 @@ bool QualType::isTriviallyCopyableType(const ASTContext &Context) const {
   return false;
 }
 
+bool QualType::isTriviallyCopyConstructibleType(
----------------
cor3ntin wrote:
Given that this function is exactly the same as the previous one, maybe we could
introduce a (non member static) `isTriviallyCopyableTypeImpl` function that checks either isTriviallyCopyableType or isTriviallyCopyConstructibleType , by either using a boolean or a callable, which isTriviallyCopyConstructibleType and isTriviallyCopyableType would dispatch to
https://github.com/llvm/llvm-project/pull/76680
    
    
More information about the cfe-commits
mailing list