Skip to content

Commit 0cf33ff

Browse files
committed
C++: Fix Code Scanning alerts.
1 parent b08e347 commit 0cf33ff

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
@@ -73,7 +73,7 @@ private Function getEnclosingFunctionForMacroInvocation(MacroInvocation mi) {
7373

7474
/**
7575
* Holds if `arg` has two components and the `i`'th component of the string
76-
* `arg` is `s`, and the components are seperated by an operation with
76+
* `arg` is `s`, and the components are separated by an operation with
7777
* opcode `opcode`.
7878
*/
7979
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)