[clang] Do not trigger -Wmissing-noreturn on lambdas prior to C++23 (PR #154545)
Yanzuo Liu via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 20 07:27:58 PDT 2025
================
@@ -1,4 +1,5 @@
-// RUN: %clang_cc1 -fsyntax-only -fcxx-exceptions -fexceptions -Wreturn-type -Wmissing-noreturn -verify %s
+// RUN: %clang_cc1 -fsyntax-only -fcxx-exceptions -fexceptions -Wreturn-type -Wmissing-noreturn -verify -std=c++17 %s
----------------
zwuis wrote:
We can change `-verify` to `-verify=expected,cxx17` so that we can use `// cxx17-warning {{...}}` instead of adding `#if` block for some test cases. See <https://clang.llvm.org/docs/InternalsManual.html#testing>.
https://github.com/llvm/llvm-project/pull/154545
More information about the cfe-commits
mailing list