https://github.com/vbvictor created 
https://github.com/llvm/llvm-project/pull/213835

None

>From a58b3a287cb3ed0cdfee766f2ccd9edd2534cf08 Mon Sep 17 00:00:00 2001
From: Victor Baranov <[email protected]>
Date: Tue, 4 Aug 2026 07:53:35 +0300
Subject: [PATCH] [clang-tidy] Use 'or-earlier' suffix in tests

---
 .../bugprone/easily-swappable-parameters-relatedness.c        | 2 +-
 .../checkers/bugprone/easily-swappable-parameters.c           | 2 +-
 .../test/clang-tidy/checkers/bugprone/signal-handler.c        | 2 +-
 .../checkers/readability/implicit-bool-conversion-c99.c       | 2 +-
 .../clang-tidy/checkers/readability/non-const-parameter.c     | 2 +-
 .../readability/use-concise-preprocessor-directives.cpp       | 4 ++--
 6 files changed, 7 insertions(+), 7 deletions(-)

diff --git 
a/clang-tools-extra/test/clang-tidy/checkers/bugprone/easily-swappable-parameters-relatedness.c
 
b/clang-tools-extra/test/clang-tidy/checkers/bugprone/easily-swappable-parameters-relatedness.c
index 0f325f0ab7ac5..ef8a4c506d70e 100644
--- 
a/clang-tools-extra/test/clang-tidy/checkers/bugprone/easily-swappable-parameters-relatedness.c
+++ 
b/clang-tools-extra/test/clang-tidy/checkers/bugprone/easily-swappable-parameters-relatedness.c
@@ -1,4 +1,4 @@
-// RUN: %check_clang_tidy -std=c99,c11,c17 -check-suffixes=,BEFORE-C23 %s 
bugprone-easily-swappable-parameters %t \
+// RUN: %check_clang_tidy -std=c17-or-earlier -check-suffixes=,BEFORE-C23 %s 
bugprone-easily-swappable-parameters %t \
 // RUN:   -config='{CheckOptions: { \
 // RUN:     bugprone-easily-swappable-parameters.MinimumLength: 2, \
 // RUN:     bugprone-easily-swappable-parameters.IgnoredParameterNames: "", \
diff --git 
a/clang-tools-extra/test/clang-tidy/checkers/bugprone/easily-swappable-parameters.c
 
b/clang-tools-extra/test/clang-tidy/checkers/bugprone/easily-swappable-parameters.c
index 25d27b3dba222..9c8eeefd54588 100644
--- 
a/clang-tools-extra/test/clang-tidy/checkers/bugprone/easily-swappable-parameters.c
+++ 
b/clang-tools-extra/test/clang-tidy/checkers/bugprone/easily-swappable-parameters.c
@@ -1,4 +1,4 @@
-// RUN: %check_clang_tidy -std=c99,c11,c17 -check-suffixes=,BEFORE-23 %s 
bugprone-easily-swappable-parameters %t \
+// RUN: %check_clang_tidy -std=c17-or-earlier -check-suffixes=,BEFORE-23 %s 
bugprone-easily-swappable-parameters %t \
 // RUN:   -config='{CheckOptions: { \
 // RUN:     bugprone-easily-swappable-parameters.MinimumLength: 2, \
 // RUN:     bugprone-easily-swappable-parameters.IgnoredParameterNames: "", \
diff --git 
a/clang-tools-extra/test/clang-tidy/checkers/bugprone/signal-handler.c 
b/clang-tools-extra/test/clang-tidy/checkers/bugprone/signal-handler.c
index 0f48cc36db8c3..ba1bcf40dece1 100644
--- a/clang-tools-extra/test/clang-tidy/checkers/bugprone/signal-handler.c
+++ b/clang-tools-extra/test/clang-tidy/checkers/bugprone/signal-handler.c
@@ -1,4 +1,4 @@
-// RUN: %check_clang_tidy -std=c99,c11,c17 -check-suffixes=,BEFORE-23 %s 
bugprone-signal-handler %t \
+// RUN: %check_clang_tidy -std=c17-or-earlier -check-suffixes=,BEFORE-23 %s 
bugprone-signal-handler %t \
 // RUN:   -- -- -isystem %S/../Inputs/Headers
 // RUN: %check_clang_tidy -std=c23-or-later %s bugprone-signal-handler %t \
 // RUN:   -- -- -isystem %S/../Inputs/Headers
diff --git 
a/clang-tools-extra/test/clang-tidy/checkers/readability/implicit-bool-conversion-c99.c
 
b/clang-tools-extra/test/clang-tidy/checkers/readability/implicit-bool-conversion-c99.c
index c06235cbf0847..3f99f2ce31a9c 100644
--- 
a/clang-tools-extra/test/clang-tidy/checkers/readability/implicit-bool-conversion-c99.c
+++ 
b/clang-tools-extra/test/clang-tidy/checkers/readability/implicit-bool-conversion-c99.c
@@ -1,4 +1,4 @@
-// RUN: %check_clang_tidy -std=c99,c11,c17 %s 
readability-implicit-bool-conversion %t
+// RUN: %check_clang_tidy -std=c17-or-earlier %s 
readability-implicit-bool-conversion %t
 
 #define true 1
 #define false 0
diff --git 
a/clang-tools-extra/test/clang-tidy/checkers/readability/non-const-parameter.c 
b/clang-tools-extra/test/clang-tidy/checkers/readability/non-const-parameter.c
index c5ddf034d6e4e..233ffb4baf692 100644
--- 
a/clang-tools-extra/test/clang-tidy/checkers/readability/non-const-parameter.c
+++ 
b/clang-tools-extra/test/clang-tidy/checkers/readability/non-const-parameter.c
@@ -1,4 +1,4 @@
-// RUN: %check_clang_tidy -std=c99,c11,c17 %s readability-non-const-parameter 
%t
+// RUN: %check_clang_tidy -std=c17-or-earlier %s 
readability-non-const-parameter %t
 
 static int f();
 
diff --git 
a/clang-tools-extra/test/clang-tidy/checkers/readability/use-concise-preprocessor-directives.cpp
 
b/clang-tools-extra/test/clang-tidy/checkers/readability/use-concise-preprocessor-directives.cpp
index b8a4953161d86..6e5516aa7eec5 100644
--- 
a/clang-tools-extra/test/clang-tidy/checkers/readability/use-concise-preprocessor-directives.cpp
+++ 
b/clang-tools-extra/test/clang-tidy/checkers/readability/use-concise-preprocessor-directives.cpp
@@ -1,7 +1,7 @@
-// RUN: %check_clang_tidy -std=c++98,c++11,c++14,c++17,c++20 
-check-suffixes=,CXX %s readability-use-concise-preprocessor-directives %t
+// RUN: %check_clang_tidy -std=c++20-or-earlier -check-suffixes=,CXX %s 
readability-use-concise-preprocessor-directives %t
 // RUN: %check_clang_tidy -std=c++23-or-later -check-suffixes=,23,CXX,CXX23 %s 
readability-use-concise-preprocessor-directives %t
 
-// RUN: %check_clang_tidy -std=c99,c11,c17 %s 
readability-use-concise-preprocessor-directives %t -- -- -x c
+// RUN: %check_clang_tidy -std=c17-or-earlier %s 
readability-use-concise-preprocessor-directives %t -- -- -x c
 // RUN: %check_clang_tidy -std=c23-or-later -check-suffixes=,23 %s 
readability-use-concise-preprocessor-directives %t -- -- -x c
 
 // CHECK-MESSAGES: :[[@LINE+2]]:2: warning: preprocessor condition can be 
written more concisely using '#ifdef' 
[readability-use-concise-preprocessor-directives]

_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to