mirror of
https://github.com/github/codeql.git
synced 2026-06-08 14:42:30 +02:00
18 lines
335 B
Plaintext
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
|