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