Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e8efb32

Browse files
C++: Remove StoreDestinationAsPostUpdateNode
1 parent 65360b2 commit e8efb32

1 file changed

Lines changed: 3 additions & 11 deletions

File tree

cpp/ql/src/semmle/code/cpp/ir/dataflow/internal/DataFlowUtil.qll

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ class UninitializedNode extends Node, UninitializedInstruction {
8484
* Nodes corresponding to AST elements, for example `ExprNode`, usually refer
8585
* to the value before the update with the exception of `ClassInstanceExpr`,
8686
* which represents the value after the constructor has run.
87+
*
88+
* This class exists to match the interface used by Java. There are currently no non-abstract
89+
* classes that extend it. When we implement field flow, we can revisit this.
8790
*/
8891
abstract class PostUpdateNode extends Node {
8992
/**
@@ -92,17 +95,6 @@ abstract class PostUpdateNode extends Node {
9295
abstract Node getPreUpdateNode();
9396
}
9497

95-
class StoreDestinationAsPostUpdateNode extends PostUpdateNode {
96-
StoreInstruction si;
97-
StoreDestinationAsPostUpdateNode() {
98-
this = si.getDestinationAddress()
99-
}
100-
101-
override Node getPreUpdateNode() {
102-
result = si.getDestinationAddress()
103-
}
104-
}
105-
10698
/**
10799
* Gets the `Node` corresponding to `e`.
108100
*/

0 commit comments

Comments
 (0)