CodeQL library for C/C++
codeql/cpp-all 2.1.1 (changelog, source)
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, catch block parameter, or requires expression 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.