[clang] Warn when unique objects might be duplicated in shared libraries (PR #117622)
Hans Wennborg via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 29 10:22:45 PST 2025
================
@@ -508,6 +508,10 @@ New Compiler Flags
- clang-cl and clang-dxc now support ``-fdiagnostics-color=[auto|never|always]``
in addition to ``-f[no-]color-diagnostics``.
+- The ``-Wunique-object-duplication`` warning has been added to warn about objects
----------------
zmodem wrote:
I think this would fit better in the "Improvements to Clang's diagnostics" section below.
(That applies for the `-Warray-compare` notes above too..)
https://github.com/llvm/llvm-project/pull/117622
More information about the cfe-commits
mailing list