From 4f4baee888344ec6ceaead3296ef21a95a5666e1 Mon Sep 17 00:00:00 2001 From: Mathias Vorreiter Pedersen Date: Fri, 9 Jan 2026 19:52:19 +0000 Subject: [PATCH] C++: Fix Code Scanning alerts. --- .../ir/implementation/raw/internal/TranslatedAssertion.qll | 2 +- .../cpp/ir/implementation/raw/internal/TranslatedStmt.qll | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/TranslatedAssertion.qll b/cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/TranslatedAssertion.qll index 20248ba18e9..4c2b82ee1c0 100644 --- a/cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/TranslatedAssertion.qll +++ b/cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/TranslatedAssertion.qll @@ -73,7 +73,7 @@ private Function getEnclosingFunctionForMacroInvocation(MacroInvocation mi) { /** * Holds if `arg` has two components and the `i`'th component of the string - * `arg` is `s`, and the components are seperated by an operation with + * `arg` is `s`, and the components are separated by an operation with * opcode `opcode`. */ bindingset[arg] diff --git a/cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/TranslatedStmt.qll b/cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/TranslatedStmt.qll index 82f1fd49b52..d748e2f8663 100644 --- a/cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/TranslatedStmt.qll +++ b/cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/TranslatedStmt.qll @@ -327,7 +327,7 @@ class TranslatedEmptyStmt extends TranslatedStmt { TranslatedEmptyStmt() { // An assertion macro invocation can expand to // an empty statement in release builds. In that case - // we synthedsize the check that would have occured. + // we synthedsize the check that would have occurred. // This is handled by `TranslatedAssertion.qll` and so // we exclude these statements here. not assertion(_, stmt) and @@ -432,7 +432,7 @@ class TranslatedExprStmt extends TranslatedStmt { TranslatedExprStmt() { // An assertion macro invocation typically expand to the // expression `((void)0)` in release builds. In that case - // we synthedsize the check that would have occured. + // we synthedsize the check that would have occurred. // This is handled by `TranslatedAssertion.qll` and so // we exclude these statements here. not assertion(_, stmt)