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

Member predicate DefOrUse::getVariable

Gets the target variable of this definition or use.

The isDef parameter is needed in order to ensure disjointness of definitions and uses; in a variable initialization such as int x = y, y is both a definition of x, as well as a use of y, and isDef is used to distinguish the two situations.

SemanticStackVariable getVariable(boolean isDef)