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

Member predicate CustomOptions::overrideReturnsNull

Holds if we wish to override the “may return NULL” inference for this call. If this holds, then rather than trying to infer whether this call might return NULL, we will instead test whether returnsNull holds for it.

By default, this handles the Xstrdup function used by the CVS project.

predicate overrideReturnsNull(Call call)