Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 900c8b7

Browse files
committed
C++: Complete the SummaryCall class.
1 parent a27949c commit 900c8b7

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

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

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,17 +1164,15 @@ class SummaryCall extends DataFlowCall, TSummaryCall {
11641164

11651165
/**
11661166
* Gets the data flow node that this call targets.
1167-
* OR
1168-
* Gets the data flow node that receives the result of the call.
1169-
* TODO: which is right?
11701167
*/
11711168
FlowSummaryImpl::Private::SummaryNode getReceiver() { result = receiver }
11721169

1173-
// override CallTargetOperand getCallTargetOperand() TODO
1174-
override DataFlowCallable getStaticCallTarget() { result = TSummarizedCallable(c) } // TODO: is this right?
1170+
// no implementation for `getCallTargetOperand()`, `getStaticCallTarget()`
1171+
// or `getArgumentOperand(int index)`. This is because the flow summary
1172+
// library is responsible for finding the call target, and there are no
1173+
// IR nodes available for the call target operand or argument operands.
11751174

1176-
// override ArgumentOperand getArgumentOperand(int index) TODO
1177-
override DataFlowCallable getEnclosingCallable() { result = TSummarizedCallable(c) } // TODO: is this right?
1175+
override DataFlowCallable getEnclosingCallable() { result = TSummarizedCallable(c) }
11781176

11791177
override string toString() { result = "[summary] call to " + receiver + " in " + c }
11801178

0 commit comments

Comments
 (0)