CodeQL library for C/C++
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)