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

Member predicate FunctionCall::getExpectedReturnType

Gets the expected return type of the function called by this call.

In most cases, the expected return type will be the return type of the function being called. It is only different when the function being called is ambiguously declared, at which point the expected return type is the return type of the (unambiguous) function declaration that was visible at the call site.

Type getExpectedReturnType()