mirror of
https://github.com/github/codeql.git
synced 2026-03-22 15:36:48 +01:00
15 lines
367 B
Plaintext
15 lines
367 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
|
|
|