C++: Fix joins in 'cpp/wrong-type-format-argument'.

This commit is contained in:
Mathias Vorreiter Pedersen
2023-12-18 09:47:41 +01:00
parent 020a049d30
commit 3897befbe2

View File

@@ -9,8 +9,9 @@
import semmle.code.cpp.models.interfaces.ArrayFunction
import semmle.code.cpp.models.interfaces.Taint
pragma[nomagic]
private Type stripTopLevelSpecifiersOnly(Type t) {
result = stripTopLevelSpecifiersOnly(t.(SpecifiedType).getBaseType())
result = stripTopLevelSpecifiersOnly(pragma[only_bind_out](t.(SpecifiedType).getBaseType()))
or
result = t and
not t instanceof SpecifiedType