C++: Improve QLDoc on assignmentLikeOperation

This commit is contained in:
Jonas Jensen
2019-08-09 15:06:19 +02:00
parent 2c6dbacd2b
commit 8aa24fe5c9

View File

@@ -603,10 +603,14 @@ module FlowVar_internal {
}
/**
* Holds if `v` is modified as a side effect of evaluating `node`, receiving a
* value best described by `e`. This corresponds to `FlowVar::definedByExpr`,
* except that the case where `node instanceof Initializer` is covered by
* `initializer` instead of this predicate.
* Holds if `v` is modified through `va` as a side effect of evaluating
* `node`, receiving a value best described by `assignedExpr`.
* Assignment-like operations are those that desugar to a non-overloaded `=`
* assignment: `=`, `+=`, `++`, `--`, etc.
*
* This corresponds to `FlowVar::definedByExpr`, except that the case where
* `node instanceof Initializer` is covered by `initializer` instead of this
* predicate.
*/
predicate assignmentLikeOperation(
ControlFlowNode node, Variable v, VariableAccess va, Expr assignedExpr