CodeQL library for C/C++
codeql/cpp-all 0.12.5 (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)