From 84c674b992dfaab6d6cf857087385a4d145ceabf Mon Sep 17 00:00:00 2001 From: Jeroen Ketema Date: Wed, 15 Jan 2025 19:31:17 +0100 Subject: [PATCH] C++: Fix typos in IR translation comments --- .../cpp/ir/implementation/raw/internal/TranslatedCondition.qll | 2 +- .../cpp/ir/implementation/raw/internal/TranslatedElement.qll | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/TranslatedCondition.qll b/cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/TranslatedCondition.qll index 1616c9c434b1..4077283f0f3d 100644 --- a/cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/TranslatedCondition.qll +++ b/cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/TranslatedCondition.qll @@ -47,7 +47,7 @@ abstract class TranslatedFlexibleCondition extends TranslatedCondition, Conditio { TranslatedFlexibleCondition() { this = TTranslatedFlexibleCondition(expr) } - final override predicate handlesDestructorsExplicitly() { none() } // TODO: this needs to be revisted when we get unnamed destructors + final override predicate handlesDestructorsExplicitly() { none() } // TODO: this needs to be revisited when we get unnamed destructors final override TranslatedElement getChild(int id) { id = 0 and result = this.getOperand() } diff --git a/cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/TranslatedElement.qll b/cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/TranslatedElement.qll index 8e7e46c94c62..e22aa33f3605 100644 --- a/cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/TranslatedElement.qll +++ b/cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/TranslatedElement.qll @@ -166,7 +166,7 @@ private predicate ignoreExpr(Expr expr) { } /** - * Holds if the side effects of `expr` should be ignoredf for the purposes of IR generation. + * Holds if the side effects of `expr` should be ignored for the purposes of IR generation. * * In cases involving `constexpr`, a call can wind up as a constant expression. `ignoreExpr()` will * not hold for such a call, since we do need to translate the call (as a constant), but we need to