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

Predicate functionDereferences

Holds if the body of a function f is likely to dereference its ith parameter unconditionally. This analysis does not account for reassignment.

Import path

import cpp
predicate functionDereferences(Function f, int i)