Skip to content

Commit 9351702

Browse files
authored
Merge pull request #19515 from jketema/depr-rewrite
C++: Do not use deprecated `hasLocationInfo` in `FlowTestCommon`
2 parents df28e3b + 757a487 commit 9351702

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/ql/lib/utils/test/dataflow/FlowTestCommon.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module IRFlowTest<IRDataFlow::GlobalFlowSig Flow> implements TestSig {
2626
n =
2727
strictcount(int line, int column |
2828
Flow::flow(any(IRDataFlow::Node otherSource |
29-
otherSource.hasLocationInfo(_, line, column, _, _)
29+
otherSource.getLocation().hasLocationInfo(_, line, column, _, _)
3030
), sink)
3131
) and
3232
(
@@ -55,7 +55,7 @@ module AstFlowTest<AstDataFlow::GlobalFlowSig Flow> implements TestSig {
5555
n =
5656
strictcount(int line, int column |
5757
Flow::flow(any(AstDataFlow::Node otherSource |
58-
otherSource.hasLocationInfo(_, line, column, _, _)
58+
otherSource.getLocation().hasLocationInfo(_, line, column, _, _)
5959
), sink)
6060
) and
6161
(

0 commit comments

Comments
 (0)