Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2ad3119

Browse files
committed
C++: Clarify getType based on the QLDoc of Instruction::getResultType()
1 parent 21acefb commit 2ad3119

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,12 @@ class Node extends TIRDataFlowNode {
111111
/** Gets the function to which this node belongs, if any. */
112112
Declaration getFunction() { none() } // overridden in subclasses
113113

114-
/** Gets the type of this node. */
114+
/**
115+
* Gets the type of this node.
116+
*
117+
* If `asInstruction().isGLValue()` holds, then the type of this node
118+
* should be thought of as "pointer to `getType()`".
119+
*/
115120
DataFlowType getType() { none() } // overridden in subclasses
116121

117122
/** Gets the instruction corresponding to this node, if any. */

0 commit comments

Comments
 (0)