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

Member predicate Node :: asParameter

Gets the positional parameter corresponding to the node that represents the value of the parameter after index number of loads, if any. For example, in:

void f(int** x) { ... }
  • The node n such that n.asParameter(0) is the parameter x represents the value of x.
  • The node n such that n.asParameter(1) is the parameter x represents the value of *x.
  • The node n such that n.asParameter(2) is the parameter x represents the value of **x.
Parameter asParameter ( int index )