mirror of
https://github.com/github/codeql.git
synced 2026-04-29 02:35:15 +02:00
removes bigint cases
This commit is contained in:
@@ -179,11 +179,8 @@ class Expr extends @expr, ExprOrStmt, ExprOrType, AST::ValueNode {
|
||||
not ctx instanceof LogicalBinaryExpr and // x LOGOP y is fine because of implicit conversion
|
||||
not ctx instanceof EqualityTest and // x EQOP y is fine because of implicit conversion and lack thereof
|
||||
not ctx.(BitOrExpr).getAnOperand().(NumberLiteral).getIntValue() = 0 and // x | 0 is fine because it's used to convert to numbers
|
||||
not ctx.(BitOrExpr).getAnOperand().(BigIntLiteral).getIntValue() = 0 and // x | 0 is fine because it's used to convert to numbers
|
||||
not ctx.(RShiftExpr).getRightOperand().(NumberLiteral).getIntValue() = 0 and // x >> 0 is fine because it's used to convert to numbers
|
||||
not ctx.(RShiftExpr).getRightOperand().(BigIntLiteral).getIntValue() = 0 and // x >> 0 is fine because it's used to convert to numbers
|
||||
not ctx.(URShiftExpr).getRightOperand().(NumberLiteral).getIntValue() = 0 and // x >> 0 is fine because it's used to convert to numbers
|
||||
not ctx.(URShiftExpr).getRightOperand().(BigIntLiteral).getIntValue() = 0 // x >> 0 is fine because it's used to convert to numbers
|
||||
not ctx.(URShiftExpr).getRightOperand().(NumberLiteral).getIntValue() = 0 // x >> 0 is fine because it's used to convert to numbers
|
||||
or
|
||||
this = ctx.(UnaryExpr).getOperand() and
|
||||
not ctx instanceof LogNotExpr and // !x is fine because of implicit conversion
|
||||
|
||||
Reference in New Issue
Block a user