We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
VarDecl
DeclStmt
1 parent d2991c4 commit 8cac8daCopy full SHA for 8cac8da
clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/init-variables.cpp
@@ -162,5 +162,9 @@ namespace gh161978 {
162
bool (*fp4)(int, int, int, ...);
163
// CHECK-MESSAGES: :[[@LINE-1]]:12: warning: variable 'fp4' is not initialized [cppcoreguidelines-init-variables]
164
// CHECK-FIXES: bool (*fp4)(int, int, int, ...) = nullptr;
165
+ bool (*fp5)(int, int), (*fp6)(int, int);
166
+ // CHECK-MESSAGES: :[[@LINE-1]]:12: warning: variable 'fp5' is not initialized [cppcoreguidelines-init-variables]
167
+ // CHECK-MESSAGES: :[[@LINE-2]]:30: warning: variable 'fp6' is not initialized [cppcoreguidelines-init-variables]
168
+ // CHECK-FIXES: bool (*fp5)(int, int) = nullptr, (*fp6)(int, int) = nullptr;
169
}
170
0 commit comments