[clang] [Sema] Add -Wc++11-narrowing-const-reference (PR #76094)

via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 21 05:46:30 PST 2023


================
@@ -1,5 +1,5 @@
 // RUN: %clang_cc1 -fsyntax-only -verify %s
-
+// RUN: %clang_cc1 -fsyntax-only -Wno-c++11-narrowing-const-reference -verify=allow %s
----------------
alexfh wrote:

"allow" is slightly confusing as the verify prefix. Maybe use `-verify=narrowing` and `-verify=narrowing-constref` for these two clang invocations? In any case, this is just minor cosmetic stuff.

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


More information about the cfe-commits mailing list