CodeQL library for C/C++
codeql/cpp-all 0.12.10 (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)