Swift: Fixes after changes to the flow summary API. · github/codeql@a4e3761 · GitHub
Skip to content

Commit a4e3761

Browse files
committed
Swift: Fixes after changes to the flow summary API.
1 parent 8129107 commit a4e3761

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

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

Lines changed: 1 addition & 1 deletion

‎swift/ql/lib/codeql/swift/dataflow/internal/FlowSummaryImpl.qll‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ module Input implements InputSig<Location, DataFlowImplSpecific::SwiftDataFlow>
2020

2121
class SinkBase = Void;
2222

23+
class FlowSummaryCallBase = Void;
24+
2325
predicate callableFromSource(SummarizedCallableBase c) { c.hasBody() }
2426

2527
ArgumentPosition callbackSelfParameterPosition() { result instanceof ThisArgumentPosition }
@@ -113,6 +115,10 @@ module Input implements InputSig<Location, DataFlowImplSpecific::SwiftDataFlow>
113115
private import Make<Location, DataFlowImplSpecific::SwiftDataFlow, Input> as Impl
114116

115117
private module StepsInput implements Impl::Private::StepsInputSig {
118+
Impl::Private::SummaryNode getSummaryNode(Node n) {
119+
result = n.(FlowSummaryNode).getSummaryNode()
120+
}
121+
116122
DataFlowCall getACall(Public::SummarizedCallable sc) { result.asCall().getStaticTarget() = sc }
117123

118124
DataFlowCallable getSourceNodeEnclosingCallable(Input::SourceBase source) { none() }

‎swift/ql/lib/codeql/swift/dataflow/internal/TaintTrackingPrivate.qll‎

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)