Skip to content

Commit f18492e

Browse files
authored
Merge pull request #7443 from github/nickrolfe/behavior
QL4QL: catch behaviour/behavior in ql/non-us-spelling
2 parents 9ffdfb2 + 28912c5 commit f18492e

File tree

15 files changed

+15
-15
lines changed

15 files changed

+15
-15
lines changed

cpp/ql/lib/DefaultOptions.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class Options extends string {
7373
* __assume(0);
7474
* ```
7575
* (note that in this case if the hint is wrong and the expression is reached at
76-
* runtime, the program's behaviour is undefined)
76+
* runtime, the program's behavior is undefined)
7777
*/
7878
predicate exprExits(Expr e) {
7979
e.(AssumeExpr).getChild(0).(CompileTimeConstantInt).getIntValue() = 0 or

cpp/ql/lib/Options.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class CustomOptions extends Options {
5050
* __assume(0);
5151
* ```
5252
* (note that in this case if the hint is wrong and the expression is reached at
53-
* runtime, the program's behaviour is undefined)
53+
* runtime, the program's behavior is undefined)
5454
*/
5555
override predicate exprExits(Expr e) { Options.super.exprExits(e) }
5656

cpp/ql/lib/experimental/semmle/code/cpp/rangeanalysis/InBoundsPointerDeref.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* `Instruction` level), and then using the array length analysis and the range
66
* analysis together to prove that some of these pointer dereferences are safe.
77
*
8-
* The analysis is soundy, i.e. it is sound if no undefined behaviour is present
8+
* The analysis is soundy, i.e. it is sound if no undefined behavior is present
99
* in the program.
1010
* Furthermore, it crucially depends on the soundiness of the range analysis and
1111
* the array length analysis.

cpp/ql/lib/semmle/code/cpp/exprs/Lambda.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class LambdaCapture extends Locatable, @lambdacapture {
118118
* An identifier is captured by reference if:
119119
* - It is explicitly captured by reference.
120120
* - It is implicitly captured, and the lambda's default capture mode is by-reference.
121-
* - The identifier is "this". [Said behaviour is dictated by the C++11 standard, but it
121+
* - The identifier is "this". [Said behavior is dictated by the C++11 standard, but it
122122
* is actually "*this" being captured rather than "this".]
123123
*/
124124
predicate isCapturedByReference() { lambda_capture(this, _, _, _, true, _, _) }

cpp/ql/src/Likely Bugs/Format/SnprintfOverflow.qhelp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"qhelp.dtd">
44
<qhelp>
55
<overview>
6-
<p>The return value of a call to <code>snprintf</code> is the number of characters that <i>would have</i> been written to the buffer assuming there was sufficient space. In the event that the operation reaches the end of the buffer and more than one character is discarded, the return value will be greater than the buffer size. This can cause incorrect behaviour, for example:
6+
<p>The return value of a call to <code>snprintf</code> is the number of characters that <i>would have</i> been written to the buffer assuming there was sufficient space. In the event that the operation reaches the end of the buffer and more than one character is discarded, the return value will be greater than the buffer size. This can cause incorrect behavior, for example:
77
</p>
88
</overview>
99

csharp/ql/lib/semmle/code/csharp/security/dataflow/ReDoSQuery.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class ExponentialRegexDataflow extends DataFlow2::Configuration {
7575

7676
/**
7777
* An expression passed as the `input` to a call to a `Regex` method, where the regex appears to
78-
* have exponential behaviour.
78+
* have exponential behavior.
7979
*/
8080
class ExponentialRegexSink extends DataFlow::ExprNode, Sink {
8181
ExponentialRegexSink() {

java/ql/lib/semmle/code/java/dataflow/FlowSteps.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ private class NumberTaintPreservingCallable extends TaintPreservingCallable {
130130
* included in this type however, then a tainted `Container` would imply that its `field` is also
131131
* tainted (but not vice versa).
132132
*
133-
* Note that `TaintTracking::Configuration` applies this behaviour by default to array, collection,
133+
* Note that `TaintTracking::Configuration` applies this behavior by default to array, collection,
134134
* map-key and map-value content, so that e.g. a tainted `Map` is assumed to have tainted keys and values.
135135
*/
136136
abstract class TaintInheritingContent extends DataFlow::Content { }

java/ql/src/utils/flowtestcasegenerator/GenerateFlowTestCase.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ SupportMethod getASupportMethod() {
8585
}
8686

8787
/**
88-
* Returns a CSV specification of the taint-/value-propagation behaviour of a test support method (`get` or `newWith` method).
88+
* Returns a CSV specification of the taint-/value-propagation behavior of a test support method (`get` or `newWith` method).
8989
*/
9090
query string getASupportMethodModel() { result = getASupportMethod().getCsvModel() }
9191

javascript/ql/experimental/adaptivethreatmodeling/lib/experimental/adaptivethreatmodeling/CodeToFeatures.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ module Raw {
178178

179179
/**
180180
* Returns a generated name for the entity. This name is generated such that
181-
* entities with the same names have similar behaviour.
181+
* entities with the same names have similar behavior.
182182
*/
183183
private string getApproximateNameForEntity(Entity entity) {
184184
count(raw::DataFlow::CallNode call, int index | entityUsedAsArgumentToCall(entity, call, index)) =

javascript/ql/lib/semmle/javascript/dataflow/AbstractValues.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* value `nonzero`;
2323
*
2424
* - at other times, the analysis does not have enough information
25-
* to precisely model the behaviour of certain program elements:
25+
* to precisely model the behavior of certain program elements:
2626
* for example, the current flow analysis is intra-procedural,
2727
* so it does not model parameter passing or return values, and
2828
* hence has to make worst-case assumptions about the possible

0 commit comments

Comments
 (0)