C++: Make it clear that 'getAnAssignment' also gets the expression from the initializer.

This commit is contained in:
Mathias Vorreiter Pedersen
2021-08-19 13:38:32 +02:00
parent 586c5b90c1
commit 207dcb08a7

View File

@@ -140,7 +140,8 @@ class Variable extends Declaration, @variable {
* This does _not_ include the initialization of the variable. Use
* `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.
* is the right-hand side of an assignment or an initialization of
* the varible.
*/
Assignment getAnAssignment() { result.getLValue() = this.getAnAccess() }