Skip to content

Commit 9cde2bb

Browse files
MathiasVPjketema
andauthored
Update cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DataFlowUtil.qll
Co-authored-by: Jeroen Ketema <[email protected]>
1 parent 68b414d commit 9cde2bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ class Node extends TIRDataFlowNode {
339339
*
340340
* For assignments, `node.asDefinition(_)` and `node.asExpr()` will both exist
341341
* for the same dataflow node. However, for expression such as `x++` that
342-
* both write to `x` and read the current value of `x`, `node.asDefinition()`
342+
* both write to `x` and read the current value of `x`, `node.asDefinition(_)`
343343
* will give the node corresponding to the value after the increment, and
344344
* `node.asExpr()` will give the node corresponding to the value before the
345345
* increment. For an example of this, consider the following:

0 commit comments

Comments
 (0)