@@ -5,7 +5,7 @@ import semmle.code.cpp.exprs.Expr
5
5
*
6
6
* This is an base QL class.
7
7
*/
8
- class UnaryArithmeticOperation extends UnaryOperation , @un_arith_op_expr { }
8
+ class UnaryArithmeticOperation extends UnaryOperation , @un_arith_op_expr { }
9
9
10
10
/**
11
11
* A C/C++ unary minus expression.
@@ -58,7 +58,7 @@ class ConjugationExpr extends UnaryArithmeticOperation, @conjugation {
58
58
* Note that this does not include calls to user-defined `operator++`
59
59
* or `operator--`.
60
60
*/
61
- class CrementOperation extends UnaryArithmeticOperation , @crement_expr {
61
+ class CrementOperation extends UnaryArithmeticOperation , @crement_expr {
62
62
override predicate mayBeImpure ( ) { any ( ) }
63
63
64
64
override predicate mayBeGloballyImpure ( ) {
@@ -75,14 +75,14 @@ class ConjugationExpr extends UnaryArithmeticOperation, @conjugation {
75
75
*
76
76
* Note that this does not include calls to user-defined `operator++`.
77
77
*/
78
- class IncrementOperation extends CrementOperation , @increment_expr { }
78
+ class IncrementOperation extends CrementOperation , @increment_expr { }
79
79
80
80
/**
81
81
* A C/C++ `--` expression (either prefix or postfix).
82
82
*
83
83
* Note that this does not include calls to user-defined `operator--`.
84
84
*/
85
- class DecrementOperation extends CrementOperation , @decrement_expr { }
85
+ class DecrementOperation extends CrementOperation , @decrement_expr { }
86
86
87
87
/**
88
88
* A C/C++ `++` or `--` prefix expression.
@@ -199,7 +199,7 @@ class ImaginaryPartExpr extends UnaryArithmeticOperation, @imagpartexpr {
199
199
*
200
200
* This is an abstract base QL class for all binary arithmetic operations.
201
201
*/
202
- abstract class BinaryArithmeticOperation extends BinaryOperation { }
202
+ class BinaryArithmeticOperation extends BinaryOperation , @bin_arith_op_expr { }
203
203
204
204
/**
205
205
* A C/C++ add expression.
@@ -404,7 +404,7 @@ class MaxExpr extends BinaryArithmeticOperation, @maxexpr {
404
404
/**
405
405
* A C/C++ pointer arithmetic operation.
406
406
*/
407
- abstract class PointerArithmeticOperation extends BinaryArithmeticOperation { }
407
+ class PointerArithmeticOperation extends BinaryArithmeticOperation , @p_arith_op_expr { }
408
408
409
409
/**
410
410
* A C/C++ pointer add expression.
0 commit comments