We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17155b6 commit ac1e069Copy full SHA for ac1e069
cpp/ql/src/Likely Bugs/Format/WrongTypeFormatArguments.ql
@@ -155,7 +155,8 @@ where
155
not actual.getUnspecifiedType().(IntegralType).getSize() = sizeof_IntType()
156
) and
157
not arg.isAffectedByMacro() and
158
- not arg.isFromUninstantiatedTemplate(_)
+ not arg.isFromUninstantiatedTemplate(_) and
159
+ not actual.getUnspecifiedType() instanceof ErroneousType
160
select arg,
161
"This argument should be of type '" + expected.getName() + "' but is of type '" +
162
actual.getUnspecifiedType().getName() + "'"
0 commit comments