Class PostUpdateNode
A node associated with an object after an operation that might have changed its state.
This can be either the argument to a callable after the callable returns (which might have mutated the argument), or the qualifier of a field after an update to the field.
Nodes corresponding to AST elements, for example ExprNode, usually refer
to the value before the update with the exception of ClassInstanceExpr,
which represents the value after the constructor has run.
Import path
import semmle.code.cpp.dataflow.internal.DataFlowUtilDirect supertypes
Indirect supertypes
Known direct subtypes
Predicates
| getFunction | Gets the function to which this node belongs. |
| getLocation | Gets the location of this element. |
| getPreUpdateNode | Gets the node before the state update. |
| getType | Gets the type of this node. |
Inherited predicates
| asDefiningArgument | Gets the argument that defines this | from Node |
| asExpr | Gets the expression corresponding to this node, if any. This predicate only has a result on nodes that represent the value of evaluating the expression. For data flowing out of an expression, like when an argument is passed by reference, use | from Node |
| asParameter | Gets the parameter corresponding to this node, if any. | from Node |
| asPartialDefinition | Gets the expression that is partially defined by this node, if any. | from Node |
| asUninitialized | Gets the uninitialized local variable corresponding to this node, if any. | from Node |
| getEnclosingCallable | INTERNAL: Do not use. Alternative name for | from Node |
| getTypeBound | Gets an upper bound on the type of this node. | from Node |
| toString | Gets a textual representation of this element. | from Node |