Skip to content

Commit 720efd6

Browse files
authored
Merge pull request github#10825 from jsoref/spelling-cpp
Spelling cpp
2 parents 122d188 + 45a0b66 commit 720efd6

File tree

53 files changed

+73
-73
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+73
-73
lines changed

cpp/ql/lib/experimental/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/experimental/semmle/code/cpp/ir/dataflow/internal/DataFlowUtil.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ predicate exprNodeShouldBeOperand(Node node, Expr e) {
746746

747747
/**
748748
* 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`.
749+
* and `node` is an `IndirectOperandNode` that should map `node.asExpr()` to `e`.
750750
*
751751
* We map `e` to `node.asExpr()` when `node` semantically represents the
752752
* same value as `load`. A subsequent flow step will flow `node` to

cpp/ql/lib/experimental/semmle/code/cpp/ir/dataflow/internal/PrintIRLocalFlow.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ private string getNodeProperty(DataFlow::Node node, string key) {
100100
or
101101
// Is there partial flow from a source to this node?
102102
// This property will only be emitted if partial flow is enabled by overriding
103-
// `DataFlow::Configration::explorationLimit()`.
103+
// `DataFlow::Configuration::explorationLimit()`.
104104
key = "pflow" and
105105
result =
106106
strictconcat(DataFlow::PartialPathNode sourceNode, DataFlow::PartialPathNode destNode, int dist,

cpp/ql/lib/experimental/semmle/code/cpp/semantic/analysis/SignAnalysisCommon.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ abstract class CustomSignDef extends SignDef {
7171
* Concrete implementations extend one of the following subclasses:
7272
* - `ConstantSignExpr`, for expressions with a compile-time constant value.
7373
* - `FlowSignExpr`, for expressions whose sign can be computed from the signs of their operands.
74-
* - `CustomsignExpr`, for expressions shose sign can be computed by a language-specific
74+
* - `CustomsignExpr`, for expressions whose sign can be computed by a language-specific
7575
* implementation.
7676
*
7777
* If the same expression matches more than one of the above subclasses, the sign is computed as

cpp/ql/lib/experimental/semmle/code/cpp/semantic/analysis/SignAnalysisSpecific.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ private import experimental.semmle.code.cpp.semantic.Semantic
1111
predicate ignoreTypeRestrictions(SemExpr e) { none() }
1212

1313
/**
14-
* Workaround to track the sign of cetain expressions even if the type of the expression is not
14+
* Workaround to track the sign of certain expressions even if the type of the expression is not
1515
* numeric.
1616
*/
1717
predicate trackUnknownNonNumericExpr(SemExpr e) { none() }

cpp/ql/lib/semmle/code/cpp/Linkage.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Proivdes the `LinkTarget` class representing linker invocations during the build process.
2+
* Provides the `LinkTarget` class representing linker invocations during the build process.
33
*/
44

55
import semmle.code.cpp.Class

cpp/ql/lib/semmle/code/cpp/Variable.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ class Variable extends Declaration, @variable {
144144
* `Variable.getInitializer()` to get the variable's initializer,
145145
* or use `Variable.getAnAssignedValue()` to get an expression that
146146
* is the right-hand side of an assignment or an initialization of
147-
* the varible.
147+
* the variable.
148148
*/
149149
Assignment getAnAssignment() { result.getLValue() = this.getAnAccess() }
150150

@@ -173,7 +173,7 @@ class Variable extends Declaration, @variable {
173173
}
174174

175175
/**
176-
* Holds if this variable is declated as part of a structured binding
176+
* Holds if this variable is declared as part of a structured binding
177177
* declaration. For example, `x` in `auto [x, y] = ...`.
178178
*/
179179
predicate isStructuredBinding() { is_structured_binding(underlyingElement(this)) }

cpp/ql/lib/semmle/code/cpp/commons/Printf.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class TypeBoundsAnalysis extends BufferWriteEstimationReason, TTypeBoundsAnalysi
7676

7777
/**
7878
* The estimation comes from non trivial bounds found via actual flow analysis,
79-
* but a widening aproximation might have been used for variables in loops.
79+
* but a widening approximation might have been used for variables in loops.
8080
* For example
8181
* ```
8282
* for (int i = 0; i < 10; ++i) {
@@ -141,7 +141,7 @@ class AttributeFormattingFunction extends FormattingFunction {
141141
* - `""` is a `vprintf` variant, `outputParamIndex` is `-1`.
142142
* - `"f"` is a `vfprintf` variant, `outputParamIndex` indicates the output stream parameter.
143143
* - `"s"` is a `vsprintf` variant, `outputParamIndex` indicates the output buffer parameter.
144-
* - `"?"` if the type cannot be deteremined. `outputParamIndex` is `-1`.
144+
* - `"?"` if the type cannot be determined. `outputParamIndex` is `-1`.
145145
*/
146146
predicate primitiveVariadicFormatter(
147147
TopLevelFunction f, string type, int formatParamIndex, int outputParamIndex
@@ -198,7 +198,7 @@ private predicate callsVariadicFormatter(
198198
* - `""` is a `vprintf` variant, `outputParamIndex` is `-1`.
199199
* - `"f"` is a `vfprintf` variant, `outputParamIndex` indicates the output stream parameter.
200200
* - `"s"` is a `vsprintf` variant, `outputParamIndex` indicates the output buffer parameter.
201-
* - `"?"` if the type cannot be deteremined. `outputParamIndex` is `-1`.
201+
* - `"?"` if the type cannot be determined. `outputParamIndex` is `-1`.
202202
*/
203203
predicate variadicFormatter(Function f, string type, int formatParamIndex, int outputParamIndex) {
204204
primitiveVariadicFormatter(f, type, formatParamIndex, outputParamIndex)

cpp/ql/lib/semmle/code/cpp/controlflow/BasicBlocks.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ private import internal.ConstantExprs
1212
* relation). The refinement manifests itself in two changes:
1313
*
1414
* - The successor relation on `BasicBlock`s uses `successors_adapted`
15-
* (instead of `successors_extended` used by `PrimtiveBasicBlock`s). Consequently,
15+
* (instead of `successors_extended` used by `PrimitiveBasicBlock`s). Consequently,
1616
* some edges between `BasicBlock`s may be removed. Example:
1717
* ```
1818
* x = 1; // s1

cpp/ql/lib/semmle/code/cpp/controlflow/StackVariableReachability.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ private predicate bbLoopEntryConditionAlwaysTrueAt(BasicBlock bb, int i, Control
149149
/**
150150
* Basic block `pred` contains all or part of the condition belonging to a loop,
151151
* and there is an edge from `pred` to `succ` that concludes the condition.
152-
* If the edge corrseponds with the loop condition being found to be `true`, then
152+
* If the edge corresponds with the loop condition being found to be `true`, then
153153
* `skipsLoop` is `false`. Otherwise the edge corresponds with the loop condition
154154
* being found to be `false` and `skipsLoop` is `true`. Non-concluding edges
155155
* within a complex loop condition are not matched by this predicate.

0 commit comments

Comments
 (0)