[all-commits] [llvm/llvm-project] dd85c6: [Sema] Add -Wc++11-narrowing-const-reference (#76094)
Fangrui Song via All-commits
all-commits at lists.llvm.org
Fri Dec 22 08:28:21 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: dd85c6cce4fc60fa4850770d66f783300a700f3a
https://github.com/llvm/llvm-project/commit/dd85c6cce4fc60fa4850770d66f783300a700f3a
Author: Fangrui Song <i at maskray.me>
Date: 2023-12-22 (Fri, 22 Dec 2023)
Changed paths:
M clang/include/clang/Basic/DiagnosticGroups.td
M clang/include/clang/Basic/DiagnosticSemaKinds.td
M clang/lib/Sema/SemaInit.cpp
M clang/test/CXX/dcl.decl/dcl.init/dcl.init.list/p7-0x.cpp
M clang/test/SemaCXX/GH63151.cpp
Log Message:
-----------
[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.
More information about the All-commits
mailing list