@@ -5,7 +5,7 @@ import semmle.code.cpp.exprs.Expr
55 *
66 * This is an base QL class.
77 */
8- class UnaryArithmeticOperation extends UnaryOperation , @un_arith_op_expr { }
8+ class UnaryArithmeticOperation extends UnaryOperation , @un_arith_op_expr { }
99
1010/**
1111 * A C/C++ unary minus expression.
@@ -58,7 +58,7 @@ class ConjugationExpr extends UnaryArithmeticOperation, @conjugation {
5858 * Note that this does not include calls to user-defined `operator++`
5959 * or `operator--`.
6060 */
61- class CrementOperation extends UnaryArithmeticOperation , @crement_expr {
61+ class CrementOperation extends UnaryArithmeticOperation , @crement_expr {
6262 override predicate mayBeImpure ( ) { any ( ) }
6363
6464 override predicate mayBeGloballyImpure ( ) {
@@ -75,14 +75,14 @@ class ConjugationExpr extends UnaryArithmeticOperation, @conjugation {
7575 *
7676 * Note that this does not include calls to user-defined `operator++`.
7777 */
78- class IncrementOperation extends CrementOperation , @increment_expr { }
78+ class IncrementOperation extends CrementOperation , @increment_expr { }
7979
8080/**
8181 * A C/C++ `--` expression (either prefix or postfix).
8282 *
8383 * Note that this does not include calls to user-defined `operator--`.
8484 */
85- class DecrementOperation extends CrementOperation , @decrement_expr { }
85+ class DecrementOperation extends CrementOperation , @decrement_expr { }
8686
8787/**
8888 * A C/C++ `++` or `--` prefix expression.
@@ -199,7 +199,7 @@ class ImaginaryPartExpr extends UnaryArithmeticOperation, @imagpartexpr {
199199 *
200200 * This is an abstract base QL class for all binary arithmetic operations.
201201 */
202- abstract class BinaryArithmeticOperation extends BinaryOperation { }
202+ class BinaryArithmeticOperation extends BinaryOperation , @bin_arith_op_expr { }
203203
204204/**
205205 * A C/C++ add expression.
@@ -404,7 +404,7 @@ class MaxExpr extends BinaryArithmeticOperation, @maxexpr {
404404/**
405405 * A C/C++ pointer arithmetic operation.
406406 */
407- abstract class PointerArithmeticOperation extends BinaryArithmeticOperation { }
407+ class PointerArithmeticOperation extends BinaryArithmeticOperation , @p_arith_op_expr { }
408408
409409/**
410410 * A C/C++ pointer add expression.
0 commit comments