CodeQL library for Swift
codeql/swift-all 4.1.3-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)