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