Skip to content

Commit dad517f

Browse files
committed
C++: Fix typo
1 parent db7c619 commit dad517f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ private predicate hasDefaultSideEffect(Call call, ParameterIndex i, boolean buff
135135
* All kinds of expressions invoke a function as part of their evaluation. This class provides a
136136
* way to treat those expressions similarly, and to get the invoked `Declaration`.
137137
*/
138-
class ExprWithCallSizeEffects extends Expr {
139-
ExprWithCallSizeEffects() {
138+
class ExprWithCallSideEffects extends Expr {
139+
ExprWithCallSideEffects() {
140140
this instanceof Call
141141
or
142142
this instanceof NewOrNewArrayExpr
@@ -162,7 +162,7 @@ class ExprWithCallSizeEffects extends Expr {
162162
* Returns the side effect opcode, if any, that represents any side effects not specifically modeled
163163
* by an argument side effect.
164164
*/
165-
Opcode getCallSideEffectOpcode(ExprWithCallSizeEffects expr) {
165+
Opcode getCallSideEffectOpcode(ExprWithCallSideEffects expr) {
166166
not exists(expr.getTarget().(SideEffectFunction)) and result instanceof Opcode::CallSideEffect
167167
or
168168
exists(SideEffectFunction sideEffectFunction |

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@ newtype TTranslatedElement =
879879
// The declaration/initialization part of a `ConditionDeclExpr`
880880
TTranslatedConditionDecl(ConditionDeclExpr expr) { not ignoreExpr(expr) } or
881881
// The side effects of a `Call`
882-
TTranslatedCallSideEffects(ExprWithCallSizeEffects expr) {
882+
TTranslatedCallSideEffects(ExprWithCallSideEffects expr) {
883883
not ignoreExpr(expr) and
884884
not ignoreSideEffects(expr)
885885
} or
@@ -918,7 +918,7 @@ newtype TTranslatedElement =
918918
} or
919919
// Constructor calls lack a qualifier (`this`) expression, so we need to handle the side effects
920920
// on `*this` without an `Expr`.
921-
TTranslatedImplicitThisQualifierSideEffect(ExprWithCallSizeEffects call, SideEffectOpcode opcode) {
921+
TTranslatedImplicitThisQualifierSideEffect(ExprWithCallSideEffects call, SideEffectOpcode opcode) {
922922
not ignoreExpr(call) and
923923
not ignoreSideEffects(call) and
924924
(

0 commit comments

Comments
 (0)