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