mirror of
https://github.com/github/codeql.git
synced 2026-05-03 04:39:29 +02:00
C++: Remark in DefinitionByReference charpred
This commit is contained in:
@@ -159,7 +159,13 @@ private module PartialDefinitions {
|
||||
class DefinitionByReference extends PartialDefinition, TReferenceArgument {
|
||||
VariableAccess va;
|
||||
|
||||
DefinitionByReference() { referenceArgument(va, definedExpr) }
|
||||
DefinitionByReference() {
|
||||
// `this` is not restricted in this charpred. That's because the full
|
||||
// extent of this class includes the charpred of the superclass, which
|
||||
// relates `this` to `definedExpr`, and `va` is functionally determined
|
||||
// by `definedExpr`.
|
||||
referenceArgument(va, definedExpr)
|
||||
}
|
||||
|
||||
VariableAccess getVariableAccess() { result = va }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user