Skip to content

Commit

Permalink
C++: Fix joins in 'cpp/wrong-type-format-argument'.
Browse files Browse the repository at this point in the history
  • Loading branch information
MathiasVP committed Dec 18, 2023
1 parent 020a049 commit 3897bef
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3897bef

Please sign in to comment.