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

Predicate FlowVar_internal::blockVarDefinedByVariable

Holds if sbb is the SubBasicBlock where v receives its initial value. See the documentation for FlowVar.definedByInitialValue.

Import path

import semmle.code.cpp.dataflow.internal.FlowVar
predicate blockVarDefinedByVariable(SubBasicBlock sbb, StackVariable v)