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

Member predicate FunctionCall::getTarget

Gets the function called by this call.

In the case of virtual function calls, the result is the most-specific function in the override tree such that the target at runtime will be one of result.getAnOverridingFunction*(). The most-specific function is determined by the compiler based on the compile time type of the object the function is a member of.

Function getTarget()