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

Predicate getMinIndirectionsForType

Returns the smallest indirection for the type t.

For most types this is 1, but for ArrayTypes (which are allocated on the stack) this is 0

Import path

import semmle.code.cpp.ir.dataflow.internal.DataFlowPrivate
int getMinIndirectionsForType(Type t)