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

Member predicate Expr::mayHaveSideEffects

Holds if the evaluation of this expression may produce observable side effects.

Memory allocation is not considered an observable side effect.

predicate mayHaveSideEffects()