mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
18 lines
385 B
Plaintext
18 lines
385 B
Plaintext
/**
|
|
* @id cs/examples/array-access
|
|
* @name Array access
|
|
* @description Finds array access expressions with an index expression
|
|
* consisting of a unary increment or decrement, e.g. 'a[i++]'.
|
|
* @tags array
|
|
* access
|
|
* index
|
|
* unary
|
|
* assignment
|
|
*/
|
|
|
|
import csharp
|
|
|
|
from ArrayAccess a
|
|
where a.getAnIndex() instanceof MutatorOperation
|
|
select a
|