[all-commits] [llvm/llvm-project] 713156: [clang] Warn about memset/memcpy to NonTriviallyCo...
serge-sans-paille via All-commits
all-commits at lists.llvm.org
Mon Oct 28 13:41:14 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 71315698c91d0cda054b903da0594ca6f072c350
https://github.com/llvm/llvm-project/commit/71315698c91d0cda054b903da0594ca6f072c350
Author: serge-sans-paille <sguelton at mozilla.com>
Date: 2024-10-28 (Mon, 28 Oct 2024)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/include/clang/Basic/DiagnosticSemaKinds.td
M clang/lib/Sema/SemaChecking.cpp
M clang/test/SemaCXX/constexpr-string.cpp
A clang/test/SemaCXX/warn-memaccess.cpp
M libcxx/include/__memory/uninitialized_algorithms.h
M libcxx/test/std/utilities/expected/types.h
M libcxx/test/support/min_allocator.h
Log Message:
-----------
[clang] Warn about memset/memcpy to NonTriviallyCopyable types (#111434)
This implements a warning that's similar to what GCC does in that
context: both memcpy and memset require their first and second operand
to be trivially copyable, let's warn if that's not the case.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list