CodeQL library for Java/Kotlin
codeql/java-all 1.1.2-dev (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.code.java.dataflow.internal.DataFlowPrivate
predicate clearsContent(Node n, ContentSet c)