[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
================
@@ -42,31 +42,31 @@ void S::operator_equals() {
m_b1 = (i > 2);
if (m_b1 == true) {
// CHECK-MESSAGES: :[[@LINE-1]]:15: warning: {{.*}} to boolean operator
- // CHECK-FIXES: {{^ if \(m_b1\) {$}}
+ // CHECK-FIXES: if (m_b1)
----------------
nicovank wrote:
Many `if` statements in this file have a trailing `{` (this file has `--match-partial-fixes` which is why this still works).
https://github.com/llvm/llvm-project/pull/162293
More information about the cfe-commits
mailing list