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

Member predicate ArrayOrVectorAggregateLiteral::getElementExpr

DEPRECATED: Use getAnElementExpr instead.

Gets the expression within the aggregate literal that is used to initialize element elementIndex, if present.

This predicate may have multiple results since an element can be initialized multiple times in the same initializer.

Expr getElementExpr(int elementIndex)