Skip to content

Commit 9736936

Browse files
authored
Merge pull request #14635 from MathiasVP/assign-pointer-add-and-sub-is-not-bitwise
2 parents ddb145f + 6e385ca commit 9736936

File tree

8 files changed

+8929
-2
lines changed

8 files changed

+8929
-2
lines changed

cpp/downgrades/8cba93a44180e0d50a80a660950800d822b981fc/old.dbscheme

+2,231
Large diffs are not rendered by default.

cpp/downgrades/8cba93a44180e0d50a80a660950800d822b981fc/semmlecode.cpp.dbscheme

+2,226
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
description: Removed @assignpaddexpr and @assignpsubexpr from @assign_bitwise_expr
2+
compatibility: full
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
category: breaking
3+
---
4+
* The expressions `AssignPointerAddExpr` and `AssignPointerSubExpr` are no longer subtypes of `AssignBitwiseOperation`.

cpp/ql/lib/semmlecode.cpp.dbscheme

+7-2
Original file line numberDiff line numberDiff line change
@@ -1334,11 +1334,16 @@ funbind(
13341334
| @assignxorexpr
13351335
| @assignlshiftexpr
13361336
| @assignrshiftexpr
1337-
| @assignpaddexpr
1337+
;
1338+
1339+
@assign_pointer_expr = @assignpaddexpr
13381340
| @assignpsubexpr
13391341
;
13401342

1341-
@assign_op_expr = @assign_arith_expr | @assign_bitwise_expr
1343+
@assign_op_expr = @assign_arith_expr
1344+
| @assign_bitwise_expr
1345+
| @assign_pointer_expr
1346+
;
13421347

13431348
@assign_expr = @assignexpr | @assign_op_expr | @blockassignexpr
13441349

0 commit comments

Comments
 (0)