C++: Clarify getType based on the QLDoc of Instruction::getResultType()

This commit is contained in:
Jeroen Ketema
2022-10-25 13:34:49 +02:00
parent 21acefb0b4
commit 2ad3119fab

View File

@@ -111,7 +111,12 @@ class Node extends TIRDataFlowNode {
/** Gets the function to which this node belongs, if any. */
Declaration getFunction() { none() } // overridden in subclasses
/** Gets the type of this node. */
/**
* Gets the type of this node.
*
* If `asInstruction().isGLValue()` holds, then the type of this node
* should be thought of as "pointer to `getType()`".
*/
DataFlowType getType() { none() } // overridden in subclasses
/** Gets the instruction corresponding to this node, if any. */