Merge pull request #7849 from Yonah125/main

C/C++: Useless Test : verification of "Fully converted" Type
This commit is contained in:
Mathias Vorreiter Pedersen
2022-02-07 11:46:51 +00:00
committed by GitHub

View File

@@ -38,6 +38,8 @@ where
) and
eq.getRightOperand() instanceof Literal and
ne.getRightOperand() instanceof Literal and
eq.getLeftOperand().getFullyConverted().getUnspecifiedType() =
ne.getLeftOperand().getFullyConverted().getUnspecifiedType() and
nearestParent(eq) = nearestParent(ne) and
sameExpr(eq.getLeftOperand(), ne.getLeftOperand())
select ne, "Useless Test"