CodeQL library for C/C++
Search

Member predicate NestedFieldAccess::getUltimateQualifier

Gets the outermost qualifier of this nested field access. In the following example, the access to myLine.start.x has outermost qualifier myLine:

struct Point
{
  float x, y;
};

struct Line
{
  Point start, end;
};

void init()
{
  Line myLine;

  myLine.start.x = 0.0f;

  // ...
}
Expr getUltimateQualifier()