CodeQL library for C/C++
codeql/cpp-all 0.3.3 (changelog, source)

Member predicate Call::getQualifier

Gets the expression to the left of the function name or function pointer variable name.

As a few examples: For the call to f in ptr->f(), this gives ptr. For the call to f in (*ptr).f(), this gives (*ptr).

Expr getQualifier()