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

Skip to content

Commit ec515f9

Browse files
committed
C++: Update QLDoc.
1 parent bdc3d10 commit ec515f9

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ class ReturnIndirectionNode extends IndirectReturnNode, ReturnNode {
544544
}
545545

546546
/**
547-
* An return node that is part of a summary.
547+
* A return node that is part of a summary.
548548
*/
549549
private class SummaryReturnNode extends ReturnNode, FlowSummaryNode {
550550
private ReturnKind rk;
@@ -711,7 +711,10 @@ private class SideEffectOutNode extends OutNode, IndirectArgumentOutNode {
711711
}
712712

713713
/**
714-
* An output node that is part of a summary.
714+
* An output node that is part of a summary. An output node is needed when the
715+
* model contains a synthesized call (`SummaryCall`) and the return value of
716+
* that call is needed by the summary (for example when the model has flow from
717+
* `Argument[0].ReturnValue`).
715718
*/
716719
private class SummaryOutNode extends OutNode, FlowSummaryNode {
717720
private SummaryCall call;

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1813,7 +1813,9 @@ abstract private class PartialDefinitionNode extends PostUpdateNode {
18131813
}
18141814

18151815
/**
1816-
* TODO: QLDoc.
1816+
* A `PostUpdateNode` that is part of a flow summary. These are synthesized,
1817+
* for example, when a models-as-data summary models a write to a field since
1818+
* the write needs to target a `PostUpdateNode`.
18171819
*/
18181820
class SummaryPostUpdateNode extends FlowSummaryNode, PostUpdateNode {
18191821
SummaryPostUpdateNode() {

0 commit comments

Comments
 (0)