We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01dfab2 commit 586c5b9Copy full SHA for 586c5b9
cpp/ql/lib/semmle/code/cpp/Variable.qll
@@ -138,7 +138,9 @@ class Variable extends Declaration, @variable {
138
* For example: `x=...` or `x+=...`.
139
*
140
* This does _not_ include the initialization of the variable. Use
141
- * `Variable.getInitializer()` to get the variable's initializer.
+ * `Variable.getInitializer()` to get the variable's initializer,
142
+ * or use `Variable.getAnAssignedValue()` to get an expression that
143
+ * is assigned to this variable somewhere in the program.
144
*/
145
Assignment getAnAssignment() { result.getLValue() = this.getAnAccess() }
146
0 commit comments