mirror of
https://github.com/github/codeql.git
synced 2026-05-03 04:39:29 +02:00
CPP: Simplify to 'CrementOperation'.
This commit is contained in:
@@ -59,8 +59,7 @@ abstract class LeapYearFieldAccess extends YearFieldAccess {
|
||||
(
|
||||
op instanceof AssignArithmeticOperation or
|
||||
exists(BinaryArithmeticOperation bao | bao = op.getAnOperand()) or
|
||||
op instanceof PostfixCrementOperation or
|
||||
op instanceof PrefixCrementOperation
|
||||
op instanceof CrementOperation
|
||||
)
|
||||
)
|
||||
}
|
||||
@@ -117,9 +116,7 @@ abstract class LeapYearFieldAccess extends YearFieldAccess {
|
||||
)
|
||||
)
|
||||
or
|
||||
op instanceof PostfixCrementOperation
|
||||
or
|
||||
op instanceof PrefixCrementOperation
|
||||
op instanceof CrementOperation
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user