CodeQL library for C/C++

Member predicate Call::getAnArgumentSubExpr

Gets a subexpression of the argument at position index. If the argument itself contains calls, such calls will be considered leaves in the expression tree. The qualifier of the call, if any, is not considered to be an argument.

Example: the call f(2, 3 + 4, g(4 + 5)) has sub expression(s) 2 at index 0; 3, 4, and 3 + 4 at index 1; and g(4 + 5) at index 2, respectively.

Expr getAnArgumentSubExpr(int index)