Skip to content

Commit 73df8e4

Browse files
authored
Merge pull request #9832 from erik-krogh/misspellings
Fix lots of misspellings
2 parents 2a9af11 + a5239bc commit 73df8e4

File tree

42 files changed

+55
-53
lines changed

Some content is hidden

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

42 files changed

+55
-53
lines changed

.github/workflows/ql-for-ql-build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ jobs:
4040
"${CODEQL}" pack create
4141
cd .codeql/pack/codeql/ql/0.0.0
4242
zip "${PACKZIP}" -r .
43+
rm -rf *
4344
env:
4445
CODEQL: ${{ steps.find-codeql.outputs.codeql-path }}
4546
PACKZIP: ${{ runner.temp }}/query-pack.zip
@@ -117,6 +118,7 @@ jobs:
117118
fi
118119
cd pack
119120
zip -rq ../codeql-ql.zip .
121+
rm -rf *
120122
- uses: actions/upload-artifact@v3
121123
with:
122124
name: codeql-ql-pack

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ class BasicBlock extends ControlFlowNodeBase {
231231
exists(Function f | f.getBlock() = this)
232232
or
233233
exists(TryStmt t, BasicBlock tryblock |
234-
// a `Handler` preceeds the `CatchBlock`, and is always the beginning
234+
// a `Handler` precedes the `CatchBlock`, and is always the beginning
235235
// of a new `BasicBlock` (see `primitive_basic_block_entry_node`).
236236
this.(Handler).getTryStmt() = t and
237237
tryblock.isReachable() and

cpp/ql/lib/semmle/code/cpp/models/implementations/Allocation.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ private class CallAllocationExpr extends AllocationExpr, FunctionCall {
218218
exists(target.getReallocPtrArg()) and
219219
this.getArgument(target.getSizeArg()).getValue().toInt() = 0
220220
) and
221-
// these are modelled directly (and more accurately), avoid duplication
221+
// these are modeled directly (and more accurately), avoid duplication
222222
not exists(NewOrNewArrayExpr new | new.getAllocatorCall() = this)
223223
}
224224

cpp/ql/lib/semmle/code/cpp/security/Overflow.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ VariableAccess varUse(LocalScopeVariable v) { result = v.getAnAccess() }
5050
* Holds if `e` potentially overflows and `use` is an operand of `e` that is not guarded.
5151
*/
5252
predicate missingGuardAgainstOverflow(Operation e, VariableAccess use) {
53-
// Since `e` is guarenteed to be a `BinaryArithmeticOperation`, a `UnaryArithmeticOperation` or
53+
// Since `e` is guaranteed to be a `BinaryArithmeticOperation`, a `UnaryArithmeticOperation` or
5454
// an `AssignArithmeticOperation` by the other constraints in this predicate, we know that
5555
// `convertedExprMightOverflowPositively` will have a result even when `e` is not analyzable
5656
// by `SimpleRangeAnalysis`.
@@ -80,7 +80,7 @@ predicate missingGuardAgainstOverflow(Operation e, VariableAccess use) {
8080
* Holds if `e` potentially underflows and `use` is an operand of `e` that is not guarded.
8181
*/
8282
predicate missingGuardAgainstUnderflow(Operation e, VariableAccess use) {
83-
// Since `e` is guarenteed to be a `BinaryArithmeticOperation`, a `UnaryArithmeticOperation` or
83+
// Since `e` is guaranteed to be a `BinaryArithmeticOperation`, a `UnaryArithmeticOperation` or
8484
// an `AssignArithmeticOperation` by the other constraints in this predicate, we know that
8585
// `convertedExprMightOverflowNegatively` will have a result even when `e` is not analyzable
8686
// by `SimpleRangeAnalysis`.

cpp/ql/src/Likely Bugs/Likely Typos/AssignWhereCompareMeant.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class BooleanControllingAssignmentInExpr extends BooleanControllingAssignment {
6868
// if((a = b) && use_value(a)) { ... }
6969
// ```
7070
// where the assignment is meant to update the value of `a` before it's used in some other boolean
71-
// subexpression that is guarenteed to be evaluate _after_ the assignment.
71+
// subexpression that is guaranteed to be evaluate _after_ the assignment.
7272
this.isParenthesised() and
7373
exists(LogicalAndExpr parent, Variable var, VariableAccess access |
7474
var = this.getLValue().(VariableAccess).getTarget() and

cpp/ql/src/Likely Bugs/Likely Typos/inconsistentLoopDirection.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ predicate illDefinedDecrForStmt(
5151
(
5252
upperBound(initialCondition) < lowerBound(terminalCondition) and
5353
(
54-
// exclude cases where the loop counter is `unsigned` (where wrapping behaviour can be used deliberately)
54+
// exclude cases where the loop counter is `unsigned` (where wrapping behavior can be used deliberately)
5555
v.getUnspecifiedType().(IntegralType).isSigned() or
5656
initialCondition.getValue().toInt() = 0
5757
)

csharp/ql/lib/semmle/code/csharp/controlflow/internal/ControlFlowGraphImpl.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1288,7 +1288,7 @@ module Statements {
12881288
}
12891289

12901290
final override predicate first(ControlFlowElement first) {
1291-
// Unlike most other statements, `foreach` statements are not modelled in
1291+
// Unlike most other statements, `foreach` statements are not modeled in
12921292
// pre-order, because we use the `foreach` node itself to represent the
12931293
// emptiness test that determines whether to execute the loop body
12941294
first(this.getIterableExpr(), first)

csharp/ql/lib/semmle/code/csharp/dataflow/internal/TaintTrackingPrivate.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ private module Cached {
149149
// Taint members
150150
readStep(nodeFrom, any(TaintedMember m).(FieldOrProperty).getContent(), nodeTo)
151151
or
152-
// Although flow through collections is modelled precisely using stores/reads, we still
152+
// Although flow through collections is modeled precisely using stores/reads, we still
153153
// allow flow out of a _tainted_ collection. This is needed in order to support taint-
154154
// tracking configurations where the source is a collection
155155
readStep(nodeFrom, TElementContent(), nodeTo)

go/ql/lib/semmle/go/Expr.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1671,7 +1671,7 @@ class MulExpr extends @mulexpr, ArithmeticBinaryExpr {
16711671
}
16721672

16731673
/**
1674-
* A divison or quotient expression using `/`.
1674+
* A division or quotient expression using `/`.
16751675
*
16761676
* Examples:
16771677
*

go/ql/lib/semmle/go/dataflow/FlowSummary.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Provides classes and predicates for definining flow summaries.
2+
* Provides classes and predicates for defining flow summaries.
33
*/
44

55
import go

0 commit comments

Comments
 (0)