[clang-tools-extra] [clang-tidy][NFC] Remove regex hacks to match full lines in tests (PR #162293)

Nicolas van Kempen via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 7 13:02:37 PDT 2025


================
@@ -333,52 +333,52 @@ void complex_typedefs() {
           }, bb = 4;
   // CHECK-MESSAGES: [[@LINE-7]]:3: warning: multiple declarations in a single statement reduces readability
   // CHECK-FIXES: int intfunction = returner();
-  // CHECK-FIXES: {{^  }}int intarray[] =
-  // CHECK-FIXES: {{^          }}{
-  // CHECK-FIXES: {{^                  }}1,
-  // CHECK-FIXES: {{^                  }}2,
-  // CHECK-FIXES: {{^                  }}3,
-  // CHECK-FIXES: {{^                  }}4
-  // CHECK-FIXES: {{^          }}};
-  // CHECK-FIXES: {{^  }}int bb = 4;
+  // CHECK-FIXES: int intarray[] =
+  // CHECK-FIXES: {
+  // CHECK-FIXES: 1,
+  // CHECK-FIXES: 2,
+  // CHECK-FIXES: 3,
+  // CHECK-FIXES: 4
+  // CHECK-FIXES: };
+  // CHECK-FIXES: int bb = 4;
----------------
nicovank wrote:

Indentation.

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


More information about the cfe-commits mailing list