mirror of
https://github.com/github/codeql.git
synced 2026-04-24 00:05:14 +02:00
C++: Comments.
This commit is contained in:
@@ -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. */
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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() }
|
||||
|
||||
Reference in New Issue
Block a user