Skip to content

Commit 943b432

Browse files
authored
release/20.x: [clang][docs] Move -Wnontrivial-memcall to added flags. (llvm#132367)
-Wnon-trivial-memcall was incorrectly added to modified flags instead of added flags. This commit moves it to the added compiler flags.
1 parent 44a6f6a commit 943b432

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

clang/docs/ReleaseNotes.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,11 @@ New Compiler Flags
545545
- The ``-Warray-compare-cxx26`` warning has been added to warn about array comparison
546546
starting from C++26, this warning is enabled as an error by default.
547547

548+
- The ``-Wnontrivial-memcall`` warning has been added to warn about
549+
passing non-trivially-copyable destination parameter to ``memcpy``,
550+
``memset`` and similar functions for which it is a documented undefined
551+
behavior. It is implied by ``-Wnontrivial-memaccess``
552+
548553
- clang-cl and clang-dxc now support ``-fdiagnostics-color=[auto|never|always]``
549554
in addition to ``-f[no-]color-diagnostics``.
550555

@@ -576,11 +581,6 @@ Modified Compiler Flags
576581
to utilize these vector libraries. The behavior for all other vector function
577582
libraries remains unchanged.
578583

579-
- The ``-Wnontrivial-memcall`` warning has been added to warn about
580-
passing non-trivially-copyable destination parameter to ``memcpy``,
581-
``memset`` and similar functions for which it is a documented undefined
582-
behavior. It is implied by ``-Wnontrivial-memaccess``
583-
584584
- Added ``-fmodules-reduced-bmi`` flag corresponding to
585585
``-fexperimental-modules-reduced-bmi`` flag. The ``-fmodules-reduced-bmi`` flag
586586
is intended to be enabled by default in the future.

0 commit comments

Comments
 (0)