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

Predicate nullValue

Holds if val is a null literal or a call to a function that may return a null literal.

Import path

import cpp
predicate nullValue(Expr val)