[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
================
@@ -1120,6 +1120,14 @@ class QualType {
/// Return true if this is a trivially copyable type (C++0x [basic.types]p9)
bool isTriviallyCopyableType(const ASTContext &Context) const;
+ /// Return true if the type is safe to bitwise copy by memcpy.
+ ///
+ /// This is an extension in clang: bitwise clonable types act as trivially
----------------
hokein wrote:
Done, updated the documentation accordingly, please take a second look.
https://github.com/llvm/llvm-project/pull/86512
More information about the cfe-commits
mailing list