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

Predicate isReferenceVariable

The type of the variable is a reference type, such as int&.

Import path

import semmle.code.cpp.dataflow.StackAddress
predicate isReferenceVariable(StackVariable var)