C++: Mention Variable.getAnAssignedValue() in the QLDoc for getAnAssignment.

This commit is contained in:
Mathias Vorreiter Pedersen
2021-08-19 12:27:03 +02:00
parent 01dfab2aec
commit 586c5b90c1

View File

@@ -138,7 +138,9 @@ class Variable extends Declaration, @variable {
* For example: `x=...` or `x+=...`.
*
* This does _not_ include the initialization of the variable. Use
* `Variable.getInitializer()` to get the variable's initializer.
* `Variable.getInitializer()` to get the variable's initializer,
* or use `Variable.getAnAssignedValue()` to get an expression that
* is assigned to this variable somewhere in the program.
*/
Assignment getAnAssignment() { result.getLValue() = this.getAnAccess() }