Skip to content

Commit d6bcfe6

Browse files
committed
C++: Fix Code Scanning alerts.
1 parent b0ef960 commit d6bcfe6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/TranslatedAssertion.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ private Function getEnclosingFunctionForMacroInvocation(MacroInvocation mi) {
7575

7676
/**
7777
* Holds if `arg` has two components and the `i`'th component of the string
78-
* `arg` is `s`, and the components are seperated by an operation with
78+
* `arg` is `s`, and the components are separated by an operation with
7979
* opcode `opcode`.
8080
*/
8181
bindingset[arg]

cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/TranslatedStmt.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ class TranslatedEmptyStmt extends TranslatedStmt {
327327
TranslatedEmptyStmt() {
328328
// An assertion macro invocation can expand to
329329
// an empty statement in release builds. In that case
330-
// we synthedsize the check that would have occured.
330+
// we synthedsize the check that would have occurred.
331331
// This is handled by `TranslatedAssertion.qll` and so
332332
// we exclude these statements here.
333333
not assertion(_, stmt) and
@@ -432,7 +432,7 @@ class TranslatedExprStmt extends TranslatedStmt {
432432
TranslatedExprStmt() {
433433
// An assertion macro invocation typically expand to the
434434
// expression `((void)0)` in release builds. In that case
435-
// we synthedsize the check that would have occured.
435+
// we synthedsize the check that would have occurred.
436436
// This is handled by `TranslatedAssertion.qll` and so
437437
// we exclude these statements here.
438438
not assertion(_, stmt)

0 commit comments

Comments
 (0)