C++: Comments.

This commit is contained in:
Geoffrey White
2024-03-08 18:20:21 +00:00
parent 23fd3f62ac
commit e8d0f1fa3e
3 changed files with 8 additions and 2 deletions

View File

@@ -119,6 +119,7 @@ module SourceSinkInterpretationInput implements
DataFlowCall asCall() {
this.asElement() = result.asCallInstruction().getUnconvertedResultExpression()
// TODO: or summary call?
// ??? this.asNode().(FlowSummaryNode).getSummaryNode() = result.(SummaryCall).getReceiver()
}
/** Gets the callable that this node corresponds to, if any. */

View File

@@ -1161,7 +1161,12 @@ class SummaryCall extends DataFlowCall, TSummaryCall {
SummaryCall() { this = TSummaryCall(c, receiver) }
/** Gets the data flow node that this call targets. */
/**
* Gets the data flow node that this call targets.
* OR
* Gets the data flow node that receives the result of the call.
* TODO: which is right?
*/
FlowSummaryImpl::Private::SummaryNode getReceiver() { result = receiver }
// override CallTargetOperand getCallTargetOperand() TODO

View File

@@ -757,7 +757,7 @@ class FlowSummaryNode extends Node, TFlowSummaryNode {
* TODO: QLDoc.
*/
override DataFlowCallable getEnclosingCallable() {
result = TSummarizedCallable(this.getSummarizedCallable())
result = TSummarizedCallable(this.getSummarizedCallable()) // TODO: this doesn't look right.
}
override Location getLocationImpl() { result = this.getSummarizedCallable().getLocation() }