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

Predicate possiblyReturnsBool

Holds if ret is a data-flow node whose value contributes to the output res of fd, and that node may have Boolean value b.

Import path

import semmle.go.dataflow.internal.DataFlowUtil
predicate possiblyReturnsBool(FuncDecl fd, FunctionOutput res, Node ret, Boolean b)