@@ -3,9 +3,9 @@ import semmle.code.cpp.exprs.Expr
33/**
44 * A C/C++ unary arithmetic operation.
55 *
6- * This is an abstract base QL class.
6+ * This is an base QL class.
77 */
8- abstract class UnaryArithmeticOperation extends UnaryOperation { }
8+ class UnaryArithmeticOperation extends UnaryOperation , @un_arith_op_expr { }
99
1010/**
1111 * A C/C++ unary minus expression.
@@ -53,12 +53,12 @@ class ConjugationExpr extends UnaryArithmeticOperation, @conjugation {
5353/**
5454 * A C/C++ `++` or `--` expression (either prefix or postfix).
5555 *
56- * This is the abstract base QL class for increment and decrement operations.
56+ * This is the base QL class for increment and decrement operations.
5757 *
5858 * Note that this does not include calls to user-defined `operator++`
5959 * or `operator--`.
6060 */
61- abstract class CrementOperation extends UnaryArithmeticOperation {
61+ class CrementOperation extends UnaryArithmeticOperation , @crement_op_expr {
6262 override predicate mayBeImpure ( ) { any ( ) }
6363
6464 override predicate mayBeGloballyImpure ( ) {
@@ -75,28 +75,28 @@ abstract class CrementOperation extends UnaryArithmeticOperation {
7575 *
7676 * Note that this does not include calls to user-defined `operator++`.
7777 */
78- abstract class IncrementOperation extends CrementOperation { }
78+ class IncrementOperation extends CrementOperation , @incr_oper_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- abstract class DecrementOperation extends CrementOperation { }
85+ class DecrementOperation extends CrementOperation , @decr_oper_expr { }
8686
8787/**
8888 * A C/C++ `++` or `--` prefix expression.
8989 *
9090 * Note that this does not include calls to user-defined operators.
9191 */
92- abstract class PrefixCrementOperation extends CrementOperation { }
92+ class PrefixCrementOperation extends CrementOperation , @prefix_crement_oper_expr { }
9393
9494/**
9595 * A C/C++ `++` or `--` postfix expression.
9696 *
9797 * Note that this does not include calls to user-defined operators.
9898 */
99- abstract class PostfixCrementOperation extends CrementOperation { }
99+ class PostfixCrementOperation extends CrementOperation , @postfix_crement_oper_expr { }
100100
101101/**
102102 * A C/C++ prefix increment expression, as in `++x`.
0 commit comments