Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 46421ef

Browse files
committed
C++: Rename crement operations
1 parent 1b29e6c commit 46421ef

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

cpp/ql/src/semmle/code/cpp/exprs/ArithmeticOperation.qll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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_op_expr {
61+
class CrementOperation extends UnaryArithmeticOperation, @crement_expr {
6262
override predicate mayBeImpure() { any() }
6363

6464
override predicate mayBeGloballyImpure() {
@@ -75,28 +75,28 @@ class ConjugationExpr extends UnaryArithmeticOperation, @conjugation {
7575
*
7676
* Note that this does not include calls to user-defined `operator++`.
7777
*/
78-
class IncrementOperation extends CrementOperation, @incr_oper_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, @decr_oper_expr { }
85+
class DecrementOperation extends CrementOperation, @decrement_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-
class PrefixCrementOperation extends CrementOperation, @prefix_crement_oper_expr { }
92+
class PrefixCrementOperation extends CrementOperation, @prefix_crement_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-
class PostfixCrementOperation extends CrementOperation, @postfix_crement_oper_expr { }
99+
class PostfixCrementOperation extends CrementOperation, @postfix_crement_expr { }
100100

101101
/**
102102
* A C/C++ prefix increment expression, as in `++x`.

cpp/ql/src/semmlecode.cpp.dbscheme

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1191,17 +1191,17 @@ funbind(
11911191
| @delete_array_expr;
11921192

11931193

1194-
@prefix_crement_oper_expr = @preincrexpr | @predecrexpr
1194+
@prefix_crement_expr = @preincrexpr | @predecrexpr
11951195

1196-
@postfix_crement_oper_expr = @postincrexpr | @postdecrexpr
1196+
@postfix_crement_expr = @postincrexpr | @postdecrexpr
11971197

1198-
@incr_oper_expr = @preincrexpr | @postincrexpr
1198+
@increment_expr = @preincrexpr | @postincrexpr
11991199

1200-
@decr_oper_expr = @predecrexpr | @postdecrexpr
1200+
@decrement_expr = @predecrexpr | @postdecrexpr
12011201

1202-
@crement_op_expr = @incr_oper_expr | @decr_oper_expr
1202+
@crement_expr = @increment_expr | @decrement_expr
12031203

1204-
@un_arith_op_expr = @arithnegexpr | @unaryplusexpr | @conjugation | @realpartexpr | @imagpartexpr | @crement_op_expr
1204+
@un_arith_op_expr = @arithnegexpr | @unaryplusexpr | @conjugation | @realpartexpr | @imagpartexpr | @crement_expr
12051205

12061206
@un_bitwise_op_expr = @complementexpr
12071207

0 commit comments

Comments
 (0)