File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
test/query-tests/Likely Bugs/Format/WrongTypeFormatArguments/Buildless Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -171,6 +171,10 @@ where
171
171
not arg .isAffectedByMacro ( ) and
172
172
not arg .isFromUninstantiatedTemplate ( _) and
173
173
not actual .getUnspecifiedType ( ) instanceof ErroneousType and
174
+ not (
175
+ expected instanceof PointerType and
176
+ actual .getUnspecifiedType ( ) .( PointerType ) .getBaseType ( ) instanceof ErroneousType
177
+ ) and
174
178
not arg .( Call ) .mayBeFromImplicitlyDeclaredFunction ( )
175
179
select arg ,
176
180
"This format specifier for type '" + expected .getName ( ) + "' does not match the argument type '" +
Original file line number Diff line number Diff line change 1
1
| tests.c:7:18:7:18 | 1 | This format specifier for type 'char *' does not match the argument type 'int'. |
2
- | tests.c:11:18:11:20 | str | This format specifier for type 'char *' does not match the argument type '<error-type> *'. |
You can’t perform that action at this time.
0 commit comments