CodeQL library for C/C++

Member predicate FunctionCall::getExpectedParameterType

Gets the expected type of the nth parameter of the function called by this call.

In most cases, the expected parameter types match the parameter types of the function being called. They are only different when the function being called is ambiguously declared, at which point the expected parameter types are the parameter types of the (unambiguous) function declaration that was visible at the call site.

Type getExpectedParameterType(int n)