================ @@ -6153,6 +6153,15 @@ def warn_static_local_in_extern_inline : Warning< def note_convert_inline_to_static : Note< "use 'static' to give inline function %0 internal linkage">; +def warn_possible_object_duplication_mutable : Warning< + "%0 is mutable, has hidden visibility, and external linkage; it may be " ---------------- zmodem wrote:
I wonder if it would be better to lead with the main issue instead, e.g. `%0 may be duplicated when built into a shared library: it is mutable, has hidden visibility, and external linkage` wdyt? https://github.com/llvm/llvm-project/pull/117622 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits