Skip to content

Commit d0ecaba

Browse files
committed
DataFlowCall non-extending subtype of Call
1 parent d4fd878 commit d0ecaba

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

cpp/ql/lib/semmle/code/cpp/dataflow/internal/DataFlowPrivate.qll

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,15 +219,13 @@ class DataFlowExpr = Expr;
219219
class DataFlowType = Type;
220220

221221
/** A function call relevant for data flow. */
222-
class DataFlowCall extends Expr {
223-
DataFlowCall() { this instanceof Call }
224-
222+
class DataFlowCall extends Expr instanceof Call {
225223
/**
226224
* Gets the nth argument for this call.
227225
*
228226
* The range of `n` is from `0` to `getNumberOfArguments() - 1`.
229227
*/
230-
Expr getArgument(int n) { result = this.(Call).getArgument(n) }
228+
Expr getArgument(int n) { result = super.getArgument(n) }
231229

232230
/** Gets the data flow node corresponding to this call. */
233231
ExprNode getNode() { result.getExpr() = this }

0 commit comments

Comments
 (0)