We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 114c2fe commit 79c713bCopy full SHA for 79c713b
cpp/ql/src/semmle/code/cpp/dataflow/internal/FlowVar.qll
@@ -159,7 +159,13 @@ private module PartialDefinitions {
159
class DefinitionByReference extends PartialDefinition, TReferenceArgument {
160
VariableAccess va;
161
162
- DefinitionByReference() { referenceArgument(va, definedExpr) }
+ DefinitionByReference() {
163
+ // `this` is not restricted in this charpred. That's because the full
164
+ // extent of this class includes the charpred of the superclass, which
165
+ // relates `this` to `definedExpr`, and `va` is functionally determined
166
+ // by `definedExpr`.
167
+ referenceArgument(va, definedExpr)
168
+ }
169
170
VariableAccess getVariableAccess() { result = va }
171
0 commit comments