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