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

Skip to content

Commit e8d0f1f

Browse files
committed
C++: Comments.
1 parent 23fd3f6 commit e8d0f1f

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ module SourceSinkInterpretationInput implements
119119
DataFlowCall asCall() {
120120
this.asElement() = result.asCallInstruction().getUnconvertedResultExpression()
121121
// TODO: or summary call?
122+
// ??? this.asNode().(FlowSummaryNode).getSummaryNode() = result.(SummaryCall).getReceiver()
122123
}
123124

124125
/** Gets the callable that this node corresponds to, if any. */

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1161,7 +1161,12 @@ class SummaryCall extends DataFlowCall, TSummaryCall {
11611161

11621162
SummaryCall() { this = TSummaryCall(c, receiver) }
11631163

1164-
/** Gets the data flow node that this call targets. */
1164+
/**
1165+
* Gets the data flow node that this call targets.
1166+
* OR
1167+
* Gets the data flow node that receives the result of the call.
1168+
* TODO: which is right?
1169+
*/
11651170
FlowSummaryImpl::Private::SummaryNode getReceiver() { result = receiver }
11661171

11671172
// override CallTargetOperand getCallTargetOperand() TODO

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
@@ -757,7 +757,7 @@ class FlowSummaryNode extends Node, TFlowSummaryNode {
757757
* TODO: QLDoc.
758758
*/
759759
override DataFlowCallable getEnclosingCallable() {
760-
result = TSummarizedCallable(this.getSummarizedCallable())
760+
result = TSummarizedCallable(this.getSummarizedCallable()) // TODO: this doesn't look right.
761761
}
762762

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

0 commit comments

Comments
 (0)