CodeQL library for C#
codeql/csharp-all 3.1.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.code.csharp.dataflow.internal.DataFlowPrivate
predicate clearsContent(Node n, ContentSet c)