CodeQL library for C/C++
codeql/cpp-all 0.12.9 (changelog, source)
Search

Class IteratorPartialDefinitionNode

INTERNAL: do not use.

A synthetic data flow node used for flow into a collection when an iterator write occurs in a callee.

Import path

import semmle.code.cpp.dataflow.internal.DataFlowUtil

Direct supertypes

Indirect supertypes

Fields

Predicates

getPreUpdateNode

Gets the node before the state update.

Inherited predicates

asDefiningArgument

Gets the argument that defines this DefinitionByReferenceNode, if any. This predicate should be used instead of asExpr when referring to the value of a reference argument after the call has returned. For example, in f(&x), this predicate will have &x as its result for the Node that represents the new value of x.

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 asDefiningArgument instead of asExpr.

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 getFunction.

from Node
getFunction

Gets the function to which this node belongs.

from PostUpdateNode
getLocation

Gets the location of this element.

from PartialDefinitionNode
getPartialDefinitionfrom PartialDefinitionNode
getType

Gets the type of this node.

from PostUpdateNode
getTypeBound

Gets an upper bound on the type of this node.

from Node
hasLocationInfo

Holds if this element is at the specified location. The location spans column startcolumn of line startline to column endcolumn of line endline in file filepath. For more information, see Locations.

from Node
toString

Gets a textual representation of this element.

from PartialDefinitionNode