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

Predicate negativeExpr

Holds if e can be negative and cannot be positive.

Import path

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