Skip to content

Commit 19bebdd

Browse files
committed
Address typos
1 parent 3e88808 commit 19bebdd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

c/common/src/codingstandards/c/Ordering.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ module Ordering {
3737
call.getTarget() = e2.getEnclosingFunction()
3838
)
3939
or
40-
// 6.5.13 point 4 & 6.5.14 point 4 - The operators guarantee left-to-righ evaluation and there is
40+
// 6.5.13 point 4 & 6.5.14 point 4 - The operators guarantee left-to-right evaluation and there is
4141
// a sequence point between the first and second operand if the latter is evaluated.
4242
exists(BinaryLogicalOperation blop |
4343
blop instanceof LogicalAndExpr or blop instanceof LogicalOrExpr
4444
|
4545
blop.getLeftOperand().getAChild*() = e1 and blop.getRightOperand().getAChild*() = e2
4646
)
4747
or
48-
// 6.5.17 point 2 - There is a sequence pointt between the left operand and the right operand.
48+
// 6.5.17 point 2 - There is a sequence point between the left operand and the right operand.
4949
exists(CommaExpr ce, Expr lhs, Expr rhs |
5050
lhs = ce.getLeftOperand() and
5151
rhs = ce.getRightOperand()

c/common/src/codingstandards/c/SideEffects.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ private class VolatileAccess extends GlobalSideEffect::Range, VariableAccess {
2626
this.getTarget().isVolatile() and
2727
// Exclude value computation of an lvalue expression soley used to determine the identity
2828
// of the object. As noted in the footnote of 6.5.16 point 3 it is implementation dependend
29-
// whether the value of the assignment expression deterived from the left operand after the assignment
29+
// whether the value of the assignment expression derived from the left operand after the assignment
3030
// is determined by reading the object. We assume it is not for assignments that are a child of an
3131
// expression statement because the value is not used and is required for the compliant MISRA-C:2012 case:
3232
// `extern volatile int v; v = v & 0x80;`

0 commit comments

Comments
 (0)