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

Predicate Make::TestAdjacentRefs::adjacentRefRead

Holds if r2 is a certain read or uncertain write, and r1 is the unique prior reference.

Import path

import codeql.ssa.Ssa
predicate adjacentRefRead(Ref r1, Ref r2)