[clang] [Clang] update reasoned delete diagnostic kind to use Extension, making it pedantic only (PR #114713)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 4 08:13:47 PST 2024


================
@@ -1,7 +1,17 @@
-// RUN: %clang_cc1 -std=c++23 -fsyntax-only -verify=expected,pre26 -pedantic %s
+// RUN: %clang_cc1 -std=c++17 -fsyntax-only -verify=expected -DTEST_NON_PEDANTIC %s
+// RUN: %clang_cc1 -std=c++17 -fsyntax-only -verify=expected,pre26 -pedantic %s
 // RUN: %clang_cc1 -std=c++2c -fsyntax-only -verify=expected,compat -Wpre-c++26-compat %s
 // RUN: %clang_cc1 -std=c++2c -fsyntax-only -verify %s
 
+#ifdef DTEST_NON_PEDANTIC
----------------
AaronBallman wrote:

It would be better to avoid the conditional logic and instead use `-verify` prefixes alone.

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


More information about the cfe-commits mailing list