[libcxx-commits] [clang] [compiler-rt] [libcxx] [llvm] [clang] Warn about memset/memcpy to NonTriviallyCopyable types (PR #111434)
Aaron Ballman via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Oct 10 06:39:41 PDT 2024
================
@@ -790,6 +790,10 @@ def warn_cstruct_memaccess : Warning<
"%1 call is a pointer to record %2 that is not trivial to "
"%select{primitive-default-initialize|primitive-copy}3">,
InGroup<NonTrivialMemaccess>;
+def warn_cxxstruct_memaccess : Warning<
+ "%select{destination for|source of|first operand of|second operand of}0 this "
+ "%1 call is a pointer to record %2 that is not trivially-copyable">,
----------------
AaronBallman wrote:
```suggestion
"%select{destination for|source of|first operand of|second operand of}0 call to "
"%1 is a pointer to non-trivially copyable type %2">,
```
Slight rewording
https://github.com/llvm/llvm-project/pull/111434
More information about the libcxx-commits
mailing list