We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 80997a3 + 5ac56c2 commit c79d7acCopy full SHA for c79d7ac
cpp/ql/src/semmle/code/cpp/ir/dataflow/internal/DataFlowUtil.qll
@@ -55,6 +55,9 @@ class Node extends TIRDataFlowNode {
55
*/
56
Expr asConvertedExpr() { result = instr.getConvertedResultExpression() }
57
58
+ /** Gets the argument that defines this `DefinitionByReferenceNode`, if any. */
59
+ Expr asDefiningArgument() { result = this.(DefinitionByReferenceNode).getArgument() }
60
+
61
/** Gets the parameter corresponding to this node, if any. */
62
Parameter asParameter() { result = instr.(InitializeParameterInstruction).getParameter() }
63
0 commit comments