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

Predicate Public::hasOperandAndIndex

Holds if indirectOperand is the dataflow node that represents the indirection of operand with indirection index indirectionIndex.

Import path

import semmle.code.cpp.ir.dataflow.internal.DataFlowNodes
predicate hasOperandAndIndex(IndirectOperand indirectOperand, Operand operand, int indirectionIndex)