@@ -9,7 +9,7 @@ private import semmle.code.cpp.models.interfaces.DataFlow
99cached
1010private newtype TNode =
1111 TExprNode ( Expr e ) or
12- TPartialDefNode ( PartialDefinition pd ) or
12+ TPartialDefinitionNode ( PartialDefinition pd ) or
1313 TPostConstructorCallNode ( ConstructorCall call ) or
1414 TExplicitParameterNode ( Parameter p ) { exists ( p .getFunction ( ) .getBlock ( ) ) } or
1515 TInstanceParameterNode ( MemberFunction f ) { exists ( f .getBlock ( ) ) and not f .isStatic ( ) } or
@@ -52,7 +52,7 @@ class Node extends TNode {
5252 * a partial definition of `&x`).s
5353 */
5454 Expr asPartialDefinition ( ) {
55- result = this .( PartialDefNode ) .getPartialDefinition ( ) .getDefinedExpr ( )
55+ result = this .( PartialDefinitionNode ) .getPartialDefinition ( ) .getDefinedExpr ( )
5656 }
5757
5858 /**
@@ -149,7 +149,7 @@ class ImplicitParameterNode extends ParameterNode, TInstanceParameterNode {
149149 * `DefinitionByReferenceNode` to represent the value of `x` after the call has
150150 * returned. This node will have its `getArgument()` equal to `&x`.
151151 */
152- class DefinitionByReferenceNode extends PartialDefNode {
152+ class DefinitionByReferenceNode extends PartialDefinitionNode {
153153 VariableAccess va ;
154154
155155 Expr argument ;
@@ -230,10 +230,10 @@ abstract class PostUpdateNode extends Node {
230230 override string toString ( ) { result = getPreUpdateNode ( ) .toString ( ) + " [post update]" }
231231}
232232
233- class PartialDefNode extends PostUpdateNode , TPartialDefNode {
233+ class PartialDefinitionNode extends PostUpdateNode , TPartialDefinitionNode {
234234 PartialDefinition pd ;
235235
236- PartialDefNode ( ) { this = TPartialDefNode ( pd ) }
236+ PartialDefinitionNode ( ) { this = TPartialDefinitionNode ( pd ) }
237237
238238 override Node getPreUpdateNode ( ) { result .asExpr ( ) = pd .getDefinedExpr ( ) }
239239
0 commit comments