mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
C++: Clarify getType based on the QLDoc of Instruction::getResultType()
This commit is contained in:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user