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