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

Member predicate AddressExpr::mayHaveOwnSideEffects

Holds if this expression may have observable side effects of its own (that is, independent of whether its sub-expressions may have side effects).

Memory allocation is not considered an observable side effect.

predicate mayHaveOwnSideEffects()