Skip to content

Commit 9647b6a

Browse files
committed
Swift: Add stub.
1 parent e6b6369 commit 9647b6a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

swift/ql/lib/codeql/swift/dataflow/internal/DataFlowPrivate.qll

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,3 +696,19 @@ class ContentApprox = Unit;
696696
/** Gets an approximated value for content `c`. */
697697
pragma[inline]
698698
ContentApprox getContentApprox(Content c) { any() }
699+
700+
/**
701+
* Gets an additional term that is added to the `join` and `branch` computations to reflect
702+
* an additional forward or backwards branching factor that is not taken into account
703+
* when calculating the (virtual) dispatch cost.
704+
*
705+
* `call` is a call with an argument `arg` that is part of a path from a source to a sink, and
706+
* `p` is the target parameter of a callable to which `call` may resolve.
707+
*
708+
* All these values are bound by the dataflow library, and if this predicate is implemented it
709+
* should be specified with a bindingset annotation that binds all the columns.
710+
*/
711+
bindingset[call, p, arg]
712+
int getAdditionalFlowIntoCallNodeTerm(DataFlowCall call, ParameterNode p, ArgumentNode arg) {
713+
none()
714+
}

0 commit comments

Comments
 (0)