Skip to content

Commit 92c0739

Browse files
committed
Adapt all languages to changes in shared library
1 parent 6b5d6bd commit 92c0739

File tree

8 files changed

+26
-10
lines changed

8 files changed

+26
-10
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@ private module StepsInput implements Impl::Private::StepsInputSig {
104104
result.getStaticCallTarget().getUnderlyingCallable() = sc
105105
}
106106

107-
Node getSourceNode(Input::SourceBase source, Impl::Private::SummaryComponent sc) { none() }
107+
DataFlowCallable getSourceNodeEnclosingCallable(Input::SourceBase source) { none() }
108+
109+
Node getSourceNode(Input::SourceBase source, Impl::Private::SummaryComponentStack s) { none() }
108110

109111
Node getSinkNode(Input::SinkBase sink, Impl::Private::SummaryComponent sc) { none() }
110112
}

csharp/ql/lib/semmle/code/csharp/dataflow/internal/FlowSummaryImpl.qll

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ private module TypesInput implements Impl::Private::TypesInputSig {
183183
)
184184
}
185185

186-
DataFlowType getSourceType(Input::SourceBase source, Impl::Private::SummaryComponent sc) {
186+
DataFlowType getSourceType(Input::SourceBase source, Impl::Private::SummaryComponentStack s) {
187187
none()
188188
}
189189

@@ -195,7 +195,9 @@ private module StepsInput implements Impl::Private::StepsInputSig {
195195
sc = viableCallable(result).asSummarizedCallable()
196196
}
197197

198-
Node getSourceNode(Input::SourceBase source, Impl::Private::SummaryComponent sc) { none() }
198+
DataFlowCallable getSourceNodeEnclosingCallable(Input::SourceBase source) { none() }
199+
200+
Node getSourceNode(Input::SourceBase source, Impl::Private::SummaryComponentStack s) { none() }
199201

200202
Node getSinkNode(Input::SinkBase sink, Impl::Private::SummaryComponent sc) { none() }
201203
}

go/ql/lib/semmle/go/dataflow/internal/FlowSummaryImpl.qll

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ private module StepsInput implements Impl::Private::StepsInputSig {
117117
)
118118
}
119119

120-
Node getSourceNode(Input::SourceBase source, Impl::Private::SummaryComponent sc) { none() }
120+
DataFlowCallable getSourceNodeEnclosingCallable(Input::SourceBase source) { none() }
121+
122+
Node getSourceNode(Input::SourceBase source, Impl::Private::SummaryComponentStack s) { none() }
121123

122124
Node getSinkNode(Input::SinkBase sink, Impl::Private::SummaryComponent sc) { none() }
123125
}

java/ql/lib/semmle/code/java/dataflow/internal/FlowSummaryImpl.qll

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ private module TypesInput implements Impl::Private::TypesInputSig {
132132
exists(rk)
133133
}
134134

135-
DataFlowType getSourceType(Input::SourceBase source, Impl::Private::SummaryComponent sc) {
135+
DataFlowType getSourceType(Input::SourceBase source, Impl::Private::SummaryComponentStack s) {
136136
none()
137137
}
138138

@@ -144,7 +144,9 @@ private module StepsInput implements Impl::Private::StepsInputSig {
144144
sc = viableCallable(result).asSummarizedCallable()
145145
}
146146

147-
Node getSourceNode(Input::SourceBase source, Impl::Private::SummaryComponent sc) { none() }
147+
DataFlowCallable getSourceNodeEnclosingCallable(Input::SourceBase source) { none() }
148+
149+
Node getSourceNode(Input::SourceBase source, Impl::Private::SummaryComponentStack s) { none() }
148150

149151
Node getSinkNode(Input::SinkBase sink, Impl::Private::SummaryComponent sc) { none() }
150152
}

javascript/ql/lib/semmle/javascript/dataflow/internal/FlowSummaryPrivate.qll

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,9 @@ private module FlowSummaryStepInput implements Private::StepsInputSig {
150150
)
151151
}
152152

153-
DataFlow::Node getSourceNode(SourceBase source, Private::SummaryComponent sc) { none() }
153+
DataFlowCallable getSourceNodeEnclosingCallable(SourceBase source) { none() }
154+
155+
DataFlow::Node getSourceNode(SourceBase source, Private::SummaryComponentStack s) { none() }
154156

155157
DataFlow::Node getSinkNode(SinkBase sink, Private::SummaryComponent sc) { none() }
156158
}

python/ql/lib/semmle/python/dataflow/new/internal/FlowSummaryImpl.qll

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ private module StepsInput implements Impl::Private::StepsInputSig {
105105
])
106106
}
107107

108-
Node getSourceNode(Input::SourceBase source, Impl::Private::SummaryComponent sc) { none() }
108+
DataFlowCallable getSourceNodeEnclosingCallable(Input::SourceBase source) { none() }
109+
110+
Node getSourceNode(Input::SourceBase source, Impl::Private::SummaryComponentStack s) { none() }
109111

110112
Node getSinkNode(Input::SinkBase sink, Impl::Private::SummaryComponent sc) { none() }
111113
}

ruby/ql/lib/codeql/ruby/dataflow/internal/FlowSummaryImpl.qll

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,9 @@ private module StepsInput implements Impl::Private::StepsInputSig {
161161
result.asCall().getAstNode() = sc.(LibraryCallable).getACallSimple()
162162
}
163163

164-
Node getSourceNode(Input::SourceBase source, Impl::Private::SummaryComponent sc) { none() }
164+
DataFlowCallable getSourceNodeEnclosingCallable(Input::SourceBase source) { none() }
165+
166+
Node getSourceNode(Input::SourceBase source, Impl::Private::SummaryComponentStack s) { none() }
165167

166168
Node getSinkNode(Input::SinkBase sink, Impl::Private::SummaryComponent sc) { none() }
167169
}

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,9 @@ private import Make<Location, DataFlowImplSpecific::SwiftDataFlow, Input> as Imp
113113
private module StepsInput implements Impl::Private::StepsInputSig {
114114
DataFlowCall getACall(Public::SummarizedCallable sc) { result.asCall().getStaticTarget() = sc }
115115

116-
Node getSourceNode(Input::SourceBase source, Impl::Private::SummaryComponent sc) { none() }
116+
DataFlowCallable getSourceNodeEnclosingCallable(Input::SourceBase source) { none() }
117+
118+
Node getSourceNode(Input::SourceBase source, Impl::Private::SummaryComponentStack s) { none() }
117119

118120
Node getSinkNode(Input::SinkBase sink, Impl::Private::SummaryComponent sc) { none() }
119121
}

0 commit comments

Comments
 (0)