Skip to content

Commit 70666f6

Browse files
committed
QL for QL: fix typos in comments
1 parent 8caad12 commit 70666f6

File tree

8 files changed

+13
-13
lines changed

8 files changed

+13
-13
lines changed

ql/ql/src/codeql_ql/ast/Ast.qll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,7 @@ class NewTypeBranch extends TNewTypeBranch, Predicate, TypeDeclaration {
919919
class Call extends TCall, Expr, Formula {
920920
/** Gets the `i`th argument of this call. */
921921
Expr getArgument(int i) {
922-
none() // overriden in sublcasses.
922+
none() // overridden in sublcasses.
923923
}
924924

925925
/** Gets an argument of this call, if any. */
@@ -1901,13 +1901,13 @@ class FunctionSymbol extends string {
19011901
*/
19021902
class BinOpExpr extends TBinOpExpr, Expr {
19031903
/** Gets the left operand of the binary expression. */
1904-
Expr getLeftOperand() { none() } // overriden in subclasses
1904+
Expr getLeftOperand() { none() } // overridden in subclasses
19051905

19061906
/** Gets the right operand of the binary expression. */
1907-
Expr getRightOperand() { none() } // overriden in subclasses
1907+
Expr getRightOperand() { none() } // overridden in subclasses
19081908

19091909
/** Gets the operator of the binary expression. */
1910-
FunctionSymbol getOperator() { none() } // overriden in subclasses
1910+
FunctionSymbol getOperator() { none() } // overridden in subclasses
19111911

19121912
/** Gets an operand of the binary expression. */
19131913
final Expr getAnOperand() { result = this.getLeftOperand() or result = this.getRightOperand() }

ql/ql/src/codeql_ql/ast/internal/Type.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ class Type extends TType {
3232
string getName() { result = "???" }
3333

3434
/**
35-
* Gets a supertype of this type. This follows the user-visible type heirarchy,
35+
* Gets a supertype of this type. This follows the user-visible type hierarchy,
3636
* and doesn't include internal types like the characteristic and domain types of classes.
3737
*/
3838
Type getASuperType() { none() }
3939

4040
/**
41-
* Gets a supertype of this type in the internal heirarchy,
41+
* Gets a supertype of this type in the internal hierarchy,
4242
* which includes the characteristic and domain types of classes.
4343
*/
4444
Type getAnInternalSuperType() { result = TDontCare() }

ql/ql/src/codeql_ql/dataflow/DataFlow.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ class SuperNode extends LocalFlow::TSuperNode {
212212
* The node is arbitrary and the caller should not rely on how the node is chosen.
213213
* The node is currently chosen such that:
214214
* - An `AstNodeNode` is preferred over other nodes.
215-
* - A node occuring earlier is preferred over one occurring later.
215+
* - A node occurring earlier is preferred over one occurring later.
216216
*/
217217
Node getArbitraryRepr() { result = min(Node n | n = getANode() | n order by getInternalId(n)) }
218218

@@ -343,7 +343,7 @@ class Tracker extends GlobalFlow::TEdgeLabelOrTrackerState {
343343
/** Holds if this is the starting point, that is, the summary of the empty path. */
344344
predicate start() { this = GlobalFlow::MkNoEdge() }
345345

346-
/** Holds if a call step has been used (possibly preceeded by return steps). */
346+
/** Holds if a call step has been used (possibly preceded by return steps). */
347347
predicate hasCall() { this = GlobalFlow::MkHasCall() }
348348

349349
/** Holds if either `start()` or `hasCall()` holds */

ql/ql/src/codeql_ql/printAstAst.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class PrintAstConfiguration extends string {
2525

2626
/**
2727
* Gets the `i`th child of parent.
28-
* The ordering is location based and pretty arbitary.
28+
* The ordering is location based and pretty arbitrary.
2929
*/
3030
AstNode getAstChild(PrintAstNode parent, int i) {
3131
result =

ql/ql/src/codeql_ql/printAstGenerated.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class PrintAstConfiguration extends string {
2828

2929
/**
3030
* Gets the `i`th child of parent.
31-
* The ordering is location based and pretty arbitary.
31+
* The ordering is location based and pretty arbitrary.
3232
*/
3333
AstNode getAstChild(PrintAstNode parent, int i) {
3434
result =

ql/ql/src/queries/style/OverridingParameterName.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @name Using a different paramater name than used in the super-predicate.
2+
* @name Using a different parameter name than used in the super-predicate.
33
* @description Using another parameter can be an indication of copy-pasted code, or a mistake.
44
* @kind problem
55
* @problem.severity warning

ql/ql/test/TestUtilities/InlineExpectationsTest.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ private string expectationCommentPattern() { result = "\\s*\\$((?:[^/]|/[^/])*)(
181181
/**
182182
* The possible columns in an expectation comment. The `TDefaultColumn` branch represents the first
183183
* column in a comment. This column is not precedeeded by a name. `TNamedColumn(name)` represents a
184-
* column containing expected results preceeded by the string `name:`.
184+
* column containing expected results preceded by the string `name:`.
185185
*/
186186
private newtype TColumn =
187187
TDefaultColumn() or

ql/ql/test/queries/performance/VarUnusedInDisjunct/Test.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ predicate mixed1(Big good, Small small) {
6969
good =
7070
any(Big bad |
7171
small.toString().matches("%foo") and
72-
// the use of good is fine, the comparison futher up binds it.
72+
// the use of good is fine, the comparison further up binds it.
7373
// the same is not true for bad.
7474
(bad.toString().matches("%foo") or good.toString().regexpMatch("foo.*")) and
7575
small.toString().regexpMatch(".*foo")

0 commit comments

Comments
 (0)