mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
16 lines
369 B
Plaintext
16 lines
369 B
Plaintext
/**
|
|
* @name Test for user-defined operator "calls"
|
|
*/
|
|
|
|
import csharp
|
|
|
|
from Method m, MutatorOperatorCall e, IncrementOperator o
|
|
where
|
|
m.hasName("MainUnaryOperator") and
|
|
e.getEnclosingCallable() = m and
|
|
e.getTarget() = o and
|
|
e.getArgument(0).(LocalVariableAccess).getTarget().hasName("iv1") and
|
|
e.getNumberOfArguments() = 1 and
|
|
e.isPrefix()
|
|
select m, e, o
|