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

Predicate IsModifiableAtImpl::isModifiableAt

Holds if t is a type with at least indirectionIndex number of indirections, and the indirectionIndex indirection can be modified by passing a value of type t to a function function.

Import path

import semmle.code.cpp.ir.dataflow.internal.SsaInternalsCommon
predicate isModifiableAt(CppType cppType, int indirectionIndex)