CodeQL library for C/C++
Search

Member predicate MessageExpr::getStaticTarget

Gets the function invoked by this message expression, as inferred by the compiler.

If the compiler could infer the type of the receiver, and that type had a method whose name matched the selector, then the result of this predicate is said method. Otherwise this predicate has no result.

In all cases, actual function dispatch isn’t performed until runtime, but the lack of a static target is often cause for concern.

MemberFunction getStaticTarget()