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

Skip to content

Commit 8aa24fe

Browse files
committed
C++: Improve QLDoc on assignmentLikeOperation
1 parent 2c6dbac commit 8aa24fe

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

  • cpp/ql/src/semmle/code/cpp/dataflow/internal

cpp/ql/src/semmle/code/cpp/dataflow/internal/FlowVar.qll

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -603,10 +603,14 @@ module FlowVar_internal {
603603
}
604604

605605
/**
606-
* Holds if `v` is modified as a side effect of evaluating `node`, receiving a
607-
* value best described by `e`. This corresponds to `FlowVar::definedByExpr`,
608-
* except that the case where `node instanceof Initializer` is covered by
609-
* `initializer` instead of this predicate.
606+
* Holds if `v` is modified through `va` as a side effect of evaluating
607+
* `node`, receiving a value best described by `assignedExpr`.
608+
* Assignment-like operations are those that desugar to a non-overloaded `=`
609+
* assignment: `=`, `+=`, `++`, `--`, etc.
610+
*
611+
* This corresponds to `FlowVar::definedByExpr`, except that the case where
612+
* `node instanceof Initializer` is covered by `initializer` instead of this
613+
* predicate.
610614
*/
611615
predicate assignmentLikeOperation(
612616
ControlFlowNode node, Variable v, VariableAccess va, Expr assignedExpr

0 commit comments

Comments
 (0)