Files
codeql/csharp/ql/test/library-tests/operators/Operators6.ql
2026-05-13 09:24:40 +02:00

18 lines
335 B
Plaintext

/**
* @name Test for operators
*/
import csharp
from Operator op, OperatorCall call
where
op.fromSource() and
(
op instanceof IncrementOperator or
op instanceof CheckedIncrementOperator or
op instanceof DecrementOperator or
op instanceof CheckedDecrementOperator
) and
call.getTarget() = op
select op, call