CodeQL library for Swift
codeql/swift-all 2.0.4-dev (changelog, source)
Search

Predicate Flow::clearsContent

Holds if captured variable v is cleared at node.

Import path

import codeql.dataflow.VariableCapture
predicate clearsContent(ClosureNode node, CapturedVariable v)