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

Member predicate ExprCall::getTarget

Gets the target of the call, as best as makes sense for this kind of call. The precise meaning depends on the kind of call it is:

  • For a call to a function, it’s the function being called.
  • For a C++ method call, it’s the statically resolved method.
  • For an Objective C message expression, it’s the statically resolved method, and it might not exist.
  • For a variable call, it never exists.
Function getTarget()