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

Predicate SsaInput::variableWrite

Holds if the i’th write in block bb writes to the variable v. certain is true if the write is guaranteed to overwrite the entire variable.

Import path

import semmle.code.cpp.ir.dataflow.internal.SsaInternals
predicate variableWrite(BasicBlock bb, int i, SourceVariable v, boolean certain)