[llvm-branch-commits] [clang] 943b432 - release/20.x: [clang][docs] Move -Wnontrivial-memcall to added flags. (#132367)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Mar 28 23:27:53 PDT 2025


Author: R-Goc
Date: 2025-03-28T23:27:50-07:00
New Revision: 943b43250b5580b73a4932032270e4478b118dcf

URL: https://github.com/llvm/llvm-project/commit/943b43250b5580b73a4932032270e4478b118dcf
DIFF: https://github.com/llvm/llvm-project/commit/943b43250b5580b73a4932032270e4478b118dcf.diff

LOG: release/20.x: [clang][docs] Move -Wnontrivial-memcall to added flags. (#132367)

-Wnon-trivial-memcall was incorrectly added to modified flags instead of
added flags. This commit moves it to the added compiler flags.

Added: 
    

Modified: 
    clang/docs/ReleaseNotes.rst

Removed: 
    


################################################################################
diff  --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst
index c921ac3518f01..f4befc242f28b 100644
--- a/clang/docs/ReleaseNotes.rst
+++ b/clang/docs/ReleaseNotes.rst
@@ -545,6 +545,11 @@ New Compiler Flags
 - The ``-Warray-compare-cxx26`` warning has been added to warn about array comparison
   starting from C++26, this warning is enabled as an error by default.
 
+- The ``-Wnontrivial-memcall`` warning has been added to warn about
+  passing non-trivially-copyable destination parameter to ``memcpy``,
+  ``memset`` and similar functions for which it is a documented undefined
+  behavior. It is implied by ``-Wnontrivial-memaccess``
+
 - clang-cl and clang-dxc now support ``-fdiagnostics-color=[auto|never|always]``
   in addition to ``-f[no-]color-diagnostics``.
 
@@ -576,11 +581,6 @@ Modified Compiler Flags
   to utilize these vector libraries. The behavior for all other vector function
   libraries remains unchanged.
 
-- The ``-Wnontrivial-memcall`` warning has been added to warn about
-  passing non-trivially-copyable destination parameter to ``memcpy``,
-  ``memset`` and similar functions for which it is a documented undefined
-  behavior. It is implied by ``-Wnontrivial-memaccess``
-
 - Added ``-fmodules-reduced-bmi`` flag corresponding to
   ``-fexperimental-modules-reduced-bmi`` flag. The ``-fmodules-reduced-bmi`` flag
   is intended to be enabled by default in the future.


        


More information about the llvm-branch-commits mailing list