mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
Move 'snippet' queries to 'snippets' folders
This commit is contained in:
16
java/ql/examples/snippets/arrayaccess.ql
Normal file
16
java/ql/examples/snippets/arrayaccess.ql
Normal file
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* @name Array access
|
||||
* @description Finds array access expressions with an index expression
|
||||
* consisting of a unary assignment
|
||||
* @tags array
|
||||
* access
|
||||
* index
|
||||
* unary
|
||||
* assignment
|
||||
*/
|
||||
|
||||
import java
|
||||
|
||||
from ArrayAccess a
|
||||
where a.getIndexExpr() instanceof UnaryAssignExpr
|
||||
select a
|
||||
Reference in New Issue
Block a user