Member predicate VariableAccess::getQualifier
Gets the expression generating the variable being accessed.
As a few examples:
For ptr->x, this gives ptr.
For (*ptr).x, this gives (*ptr).
For smart_ptr->x, this gives the call to operator->.
This applies mostly to FieldAccesses, but also to static member variables accessed “through” a pointer. Note that it does NOT apply to static member variables accessed through a type name, as in that case the type name is a qualifier on the variable rather than a qualifier on the access.