C++: Remark in DefinitionByReference charpred

This commit is contained in:
Jonas Jensen
2019-09-05 09:36:46 +02:00
parent 114c2fe0d4
commit 79c713bd87

View File

@@ -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 }