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

Skip to content

Commit 557b94c

Browse files
authored
Merge pull request #10966 from jketema/spelling-comments
C++: Spelling fixes and documentation clarification
2 parents b85d3bc + 2ad3119 commit 557b94c

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ private Instruction getANonConversionUse(Operand operand) {
241241

242242
/**
243243
* Gets the operand that represents the first use of the value of `call` following
244-
* a sequnce of conversion-like instructions.
244+
* a sequence of conversion-like instructions.
245245
*/
246246
predicate operandForfullyConvertedCall(Operand operand, CallInstruction call) {
247247
exists(getANonConversionUse(operand)) and
@@ -254,7 +254,7 @@ predicate operandForfullyConvertedCall(Operand operand, CallInstruction call) {
254254

255255
/**
256256
* Gets the instruction that represents the first use of the value of `call` following
257-
* a sequnce of conversion-like instructions.
257+
* a sequence of conversion-like instructions.
258258
*
259259
* This predicate only holds if there is no suitable operand (i.e., no operand of a non-
260260
* conversion instruction) to use to represent the value of `call` after conversions.

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,12 @@ class Node extends TIRDataFlowNode {
111111
/** Gets the function to which this node belongs, if any. */
112112
Declaration getFunction() { none() } // overridden in subclasses
113113

114-
/** Gets the type of this node. */
114+
/**
115+
* Gets the type of this node.
116+
*
117+
* If `asInstruction().isGLValue()` holds, then the type of this node
118+
* should be thought of as "pointer to `getType()`".
119+
*/
115120
DataFlowType getType() { none() } // overridden in subclasses
116121

117122
/** Gets the instruction corresponding to this node, if any. */
@@ -746,7 +751,7 @@ predicate exprNodeShouldBeOperand(Node node, Expr e) {
746751

747752
/**
748753
* Holds if `load` is a `LoadInstruction` that is the result of evaluating `e`
749-
* and `node` is an `IndirctOperandNode` that should map `node.asExpr()` to `e`.
754+
* and `node` is an `IndirectOperandNode` that should map `node.asExpr()` to `e`.
750755
*
751756
* We map `e` to `node.asExpr()` when `node` semantically represents the
752757
* same value as `load`. A subsequent flow step will flow `node` to

0 commit comments

Comments
 (0)