Skip to content

Commit d2991c4

Browse files
committed
[NFC] Fix test: wrong message column
1 parent da42dcf commit d2991c4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/init-variables.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,16 +151,16 @@ namespace gh112089 {
151151
namespace gh161978 {
152152
void test() {
153153
bool (*fp1)(int);
154-
// CHECK-MESSAGES: :[[@LINE-1]]:14: warning: variable 'fp1' is not initialized [cppcoreguidelines-init-variables]
154+
// CHECK-MESSAGES: :[[@LINE-1]]:12: warning: variable 'fp1' is not initialized [cppcoreguidelines-init-variables]
155155
// CHECK-FIXES: bool (*fp1)(int) = nullptr;
156156
bool (*fp2)(int, int);
157-
// CHECK-MESSAGES: :[[@LINE-1]]:14: warning: variable 'fp2' is not initialized [cppcoreguidelines-init-variables]
157+
// CHECK-MESSAGES: :[[@LINE-1]]:12: warning: variable 'fp2' is not initialized [cppcoreguidelines-init-variables]
158158
// CHECK-FIXES: bool (*fp2)(int, int) = nullptr;
159159
bool (*fp3)(int, int, int);
160-
// CHECK-MESSAGES: :[[@LINE-1]]:14: warning: variable 'fp3' is not initialized [cppcoreguidelines-init-variables]
160+
// CHECK-MESSAGES: :[[@LINE-1]]:12: warning: variable 'fp3' is not initialized [cppcoreguidelines-init-variables]
161161
// CHECK-FIXES: bool (*fp3)(int, int, int) = nullptr;
162162
bool (*fp4)(int, int, int, ...);
163-
// CHECK-MESSAGES: :[[@LINE-1]]:14: warning: variable 'fp4' is not initialized [cppcoreguidelines-init-variables]
163+
// CHECK-MESSAGES: :[[@LINE-1]]:12: warning: variable 'fp4' is not initialized [cppcoreguidelines-init-variables]
164164
// CHECK-FIXES: bool (*fp4)(int, int, int, ...) = nullptr;
165165
}
166166
}

0 commit comments

Comments
 (0)