CodeQL library for Java/Kotlin
codeql/java-all 4.0.1-dev (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)