release/20.x: [clang][docs] Move -Wnontrivial-memcall to added flags.… · llvm/llvm-project@943b432 (original) (raw)
`@@ -545,6 +545,11 @@ New Compiler Flags
`
545
545
``` - The -Warray-compare-cxx26
warning has been added to warn about array comparison
`546`
`546`
` starting from C++26, this warning is enabled as an error by default.
`
`547`
`547`
``
``
`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
+
548
553
``` - clang-cl and clang-dxc now support -fdiagnostics-color=[auto|never|always]
`549`
`554`
``` in addition to ``-f[no-]color-diagnostics``.
550
555
``
`@@ -576,11 +581,6 @@ Modified Compiler Flags
`
576
581
` to utilize these vector libraries. The behavior for all other vector function
`
577
582
` libraries remains unchanged.
`
578
583
``
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
``
-
584
584
``` - Added -fmodules-reduced-bmi
flag corresponding to
`585`
`585`
``` ``-fexperimental-modules-reduced-bmi`` flag. The ``-fmodules-reduced-bmi`` flag
586
586
` is intended to be enabled by default in the future.
`