Module Variable
Provides classes for modeling variables and their declarations.
Import path
import semmle.code.cpp.Variable
Imports
Access | Provides classes for modeling accesses including variable accesses, enum constant accesses and function accesses. |
Element | Provides the |
Initializer | Provides the |
Classes
GlobalOrNamespaceVariable | A C/C++ variable which has global scope or namespace scope. For example the variables |
GlobalVariable | A C/C++ variable which has global scope. For example the variable |
LocalScopeVariable | A C/C++ variable with block scope [N4140 3.3.3]. In other words, a local variable or a function parameter. For example, the variables |
LocalVariable | A C/C++ local variable. In other words, any variable that has block scope [N4140 3.3.3], but is not a parameter of a |
MemberVariable | A C structure member or C++ member variable. For example the member variables |
NamespaceVariable | A C/C++ variable which has namespace scope. For example the variable |
ParameterDeclarationEntry | A parameter as described within a particular declaration or definition of a C/C++ function. For example the declaration of |
SemanticStackVariable | A non-static local variable or parameter that is not part of an uninstantiated template. Uninstantiated templates are purely syntax, and only on instantiation will they be complete with information about types, conversions, call targets, etc. For example in the following code, the variables |
StackVariable | A C/C++ variable with automatic storage duration. In other words, a function parameter or a local variable that is not static or thread-local. For example, the variables |
StaticLocalVariable | A C++ local variable declared as |
StaticStorageDurationVariable | A variable whose contents always have static storage duration. This can be a global variable, a namespace variable, a static local variable, or a static member variable. |
TemplateVariable | A C++14 variable template. For example, in the following code the variable template |
Variable | A C/C++ variable. For example, in the following code there are four variables, |
VariableDeclarationEntry | A particular declaration or definition of a C/C++ variable. For example, in the following code there are six variable declaration entries - two each for |
VariableTemplateInstantiation | A variable that is an instantiation of a template. For example the instantiation |