mirror of
https://github.com/github/codeql.git
synced 2026-02-11 20:51:06 +01:00
C++: Make it clear that 'getAnAssignment' also gets the expression from the initializer.
This commit is contained in:
@@ -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() }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user