CodeQL library for C/C++
Search

Module Parameter

Provides a class that models parameters to functions.

Import path

import semmle.code.cpp.Parameter

Imports

Declaration

Provides classes for working with C and C++ declarations.

Location

Provides classes and predicates for locations in the source code.

Classes

Parameter

A C/C++ function parameter or catch block parameter. For example the function parameter p and the catch block parameter e in the following code: void myFunction(int p) { try { ... } catch (const std::exception &e) { ... } }

ParameterIndex

An int that is a parameter index for some function. This is needed for binding in certain cases.