CodeQL library for Python
codeql/python-all 1.0.1 (changelog, source)
Search

Predicate clearsContent

Holds if values stored inside content c are cleared at node n. For example, any value stored inside f is cleared at the pre-update node associated with x in x.f = newValue.

Import path

import semmle.python.dataflow.new.internal.DataFlowPrivate
predicate clearsContent(Node n, ContentSet c)