CodeQL library for C/C++
codeql/cpp-all 2.0.2 (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)