CodeQL library for C#
codeql/csharp-all 0.9.2-dev (changelog, source)
Search

Predicate positiveExpr

Holds if e can be positive and cannot be negative.

Import path

import semmle.code.csharp.dataflow.SignAnalysis
predicate positiveExpr(Expr e)