File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
swift/ql/lib/codeql/swift/dataflow/internal Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -696,3 +696,19 @@ class ContentApprox = Unit;
696
696
/** Gets an approximated value for content `c`. */
697
697
pragma [ inline]
698
698
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
+ }
You can’t perform that action at this time.
0 commit comments