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.
2 parents 1f2865c + 61dc9ef commit 55e69d4Copy full SHA for 55e69d4
cpp/ql/src/experimental/Best Practices/UselessTest.ql
@@ -38,6 +38,8 @@ where
38
) and
39
eq.getRightOperand() instanceof Literal and
40
ne.getRightOperand() instanceof Literal and
41
+ eq.getLeftOperand().getFullyConverted().getUnspecifiedType() =
42
+ ne.getLeftOperand().getFullyConverted().getUnspecifiedType() and
43
nearestParent(eq) = nearestParent(ne) and
44
sameExpr(eq.getLeftOperand(), ne.getLeftOperand())
45
select ne, "Useless Test"
0 commit comments