C++: Fixes after changes to the flow summary API. · github/codeql@076b01c · GitHub
Skip to content

Commit 076b01c

Browse files
committed
C++: Fixes after changes to the flow summary API.
1 parent bb2ec12 commit 076b01c

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

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

Lines changed: 4 additions & 0 deletions

cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DataFlowNodes.qll

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1534,12 +1534,8 @@ class FlowSummaryNode extends Node, TFlowSummaryNode {
15341534
result = this.getSummaryNode().getSummarizedCallable()
15351535
}
15361536

1537-
/**
1538-
* Gets the enclosing callable. For a `FlowSummaryNode` this is always the
1539-
* summarized function this node is part of.
1540-
*/
15411537
override DataFlowCallable getEnclosingCallable() {
1542-
result.asSummarizedCallable() = this.getSummarizedCallable()
1538+
result = FlowSummaryImpl::Private::getEnclosingCallable(this.getSummaryNode())
15431539
}
15441540

15451541
override Location getLocationImpl() { result = this.getSummarizedCallable().getLocation() }

cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DataFlowUtil.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ private module Cached {
158158
model = ""
159159
or
160160
// models-as-data summarized flow
161-
FlowSummaryImpl::Private::Steps::summaryLocalStep(nodeFrom.(FlowSummaryNode).getSummaryNode(),
161+
FlowSummaryImpl::Private::Steps::summaryLocalStep(nodeFrom,
162162
nodeTo.(FlowSummaryNode).getSummaryNode(), true, model)
163163
}
164164

cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/TaintTrackingUtil.qll

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)