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

Predicate aggregateLiteralChild

The type of agg is s, and the expression initializing the ith member of s is child.

Import path

import semmle.code.cpp.pointsto.PointsTo
predicate aggregateLiteralChild(AggregateLiteral agg, Struct s, int i, Expr child)