mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +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. */
|
/** Gets the operands corresponding to this node, if any. */
|
||||||
Operand asOperand() { result = this.(OperandNode).getOperand() }
|
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) {
|
final predicate hasIndexInBlock(IRBlock block, int i) {
|
||||||
this.asInstruction() = block.getInstruction(i)
|
this.asInstruction() = block.getInstruction(i)
|
||||||
or
|
or
|
||||||
|
|||||||
Reference in New Issue
Block a user