[clang] [clang] Report narrowing conversions with const references (PR #75332)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 3 07:02:01 PST 2024


erichkeane wrote:

> The change in the diagnostic happens to make it much noisier than it was before. Our code was clean w.r.t. -Wc++11-narrowing, but now we see hundreds if not thousands of compilation breakages (we use -Werror, which turns out to be the only robust way to avoid backsliding). I think, the new behavior (though useful) needs to be guarded by a separate warning flag.

Looks like that was done here; https://github.com/llvm/llvm-project/pull/76094

https://github.com/llvm/llvm-project/pull/75332


More information about the cfe-commits mailing list