mirror of
https://github.com/github/codeql.git
synced 2025-12-21 11:16:30 +01:00
C++: More QLDoc.
This commit is contained in:
@@ -160,7 +160,11 @@ class Node extends TIRDataFlowNode {
|
||||
/** Gets the operands corresponding to this node, if any. */
|
||||
Operand asOperand() { result = this.(OperandNode).getOperand() }
|
||||
|
||||
/** Holds if this node is at index `i` in basic block `block`. */
|
||||
/**
|
||||
* Holds if this node is at index `i` in basic block `block`.
|
||||
*
|
||||
* Note: Phi nodes are considered to be at index `-1`.
|
||||
*/
|
||||
final predicate hasIndexInBlock(IRBlock block, int i) {
|
||||
this.asInstruction() = block.getInstruction(i)
|
||||
or
|
||||
|
||||
Reference in New Issue
Block a user