CodeQL library for Java/Kotlin
codeql/java-all 1.1.0 (changelog, source)
Search

Predicate getArrayDef

Gets the definition of v provided that v is a non-null array with an explicit ArrayCreationExpr definition and that the definition does not go through a back edge.

Import path

import semmle.code.java.dataflow.RangeUtils
ArrayCreationExpr getArrayDef(SsaVariable v)