CodeQL library for C/C++
codeql/cpp-all 1.4.1 (changelog, source)
Search

Member predicate NewArrayExpr::getArraySize

Gets the number of elements in the array, if available.

For example, new int[]{1,2,3} has an array size of 3.

int getArraySize()