Skip to content

Commit ab70f57

Browse files
committed
C++: More QLDoc.
1 parent 49cceb2 commit ab70f57

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DataFlowUtil.qll

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,11 @@ class Node extends TIRDataFlowNode {
160160
/** Gets the operands corresponding to this node, if any. */
161161
Operand asOperand() { result = this.(OperandNode).getOperand() }
162162

163-
/** Holds if this node is at index `i` in basic block `block`. */
163+
/**
164+
* Holds if this node is at index `i` in basic block `block`.
165+
*
166+
* Note: Phi nodes are considered to be at index `-1`.
167+
*/
164168
final predicate hasIndexInBlock(IRBlock block, int i) {
165169
this.asInstruction() = block.getInstruction(i)
166170
or

0 commit comments

Comments
 (0)