CodeQL library for C/C++
codeql/cpp-all 2.0.1-dev (changelog, source)
Search

Predicate nullCheckExpr

Holds if var is null when checkExpr evaluates to a true value.

Import path

import cpp
predicate nullCheckExpr(Expr checkExpr, Variable var)