2 Commits

Author SHA1 Message Date
Fangrui Song
dd85c6cce4
[Sema] Add -Wc++11-narrowing-const-reference (#76094)
https://github.com/llvm/llvm-project/pull/75332 diagnosed narrowing
involving const reference. Our depot has hundreds if not thousands of
breakages

(https://github.com/llvm/llvm-project/pull/75332#issuecomment-1864757240).
Add a subgroup of -Wc++11-narrowing to help users gradually fix their
issues without regressing the existing -Wc++11-narrowing diagnostics.
2023-12-22 11:28:07 -05:00
Mariya Podchishchaeva
cd09f21b22
[clang] Report narrowing conversions with const references (#75332)
Fixes https://github.com/llvm/llvm-project/issues/63151

---------

Co-authored-by: Erich Keane <ekeane@nvidia.com>
2023-12-15 09:42:20 +01:00