CodeQL library for Go
codeql/go-all 7.2.2 (changelog, source)
Search

Predicate firstUse

NB: This predicate should be cached.

Holds if def reaches the first use use without going through any other use, but possibly through phi nodes.

Import path

import semmle.go.dataflow.SsaImpl
predicate firstUse(Definition def, Instruction use)