mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
18 lines
376 B
Plaintext
18 lines
376 B
Plaintext
/**
|
|
* @id cpp/examples/arrayaccess
|
|
* @name Array access
|
|
* @description Finds array access expressions with an index expression
|
|
* consisting of a postfix increment (`++`) expression.
|
|
* @tags array
|
|
* access
|
|
* index
|
|
* postfix
|
|
* increment
|
|
*/
|
|
|
|
import cpp
|
|
|
|
from ArrayExpr a
|
|
where a.getArrayOffset() instanceof PostfixIncrExpr
|
|
select a
|