CodeQL library for C/C++
codeql/cpp-all 0.12.7-dev (changelog, source)

Member predicate Parameter::getLocation

Gets the canonical location, or locations, of this parameter.

  1. For catch block parameters, gets the obvious location.
  2. For parameters of functions which have a definition, gets the location within the function definition.
  3. For parameters of functions which don’t have a definition, gets all of the declaration locations.
Location getLocation()