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

Member predicate Function::mayReturnNormally

Holds if this function may return without panicking, exiting the process, or looping forever.

This predicate is an over-approximation: it may hold for functions that can never return normally, but it never fails to hold for functions that can.

Library models should not override this predicate; override mustNotReturnNormally instead, so that the control-flow graph construction can take the model into account.

predicate mayReturnNormally()