Skip to content

Commit 4e415d7

Browse files
committed
A7-2-1: Fix typo in query message.
1 parent d74222a commit 4e415d7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cpp/autosar/src/rules/A7-2-1/NonEnumeratorEnumValue.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ where
4747
then
4848
description =
4949
"Cast to enum $@ with from expression with value " + c.getExpr().getValue().toFloat() +
50-
"_+ which is not one of the enumerator values in function " +
50+
" which is not one of the enumerator values in function " +
5151
c.getEnclosingFunction().getName() + "."
5252
else
5353
if exists(upperBound(c.getExpr()))

cpp/autosar/test/rules/A7-2-1/NonEnumeratorEnumValue.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
| test.cpp:27:12:27:25 | (Foo)... | Cast to enum $@ with from expression with range 0...3 which may not be one of the enumerator values in function test_bitwise_or. | test.cpp:2:6:2:8 | Foo | Foo |
88
| test.cpp:28:12:28:25 | (Foo)... | Cast to enum $@ with from expression with range 0...7 which may not be one of the enumerator values in function test_bitwise_or. | test.cpp:2:6:2:8 | Foo | Foo |
99
| test.cpp:39:12:39:17 | (Bar)... | Cast to enum $@ with from expression with range 1...1 which may not be one of the enumerator values in function test_constant. | test.cpp:5:6:5:8 | Bar | Bar |
10-
| test.cpp:41:12:41:17 | (Bar)... | Cast to enum $@ with from expression with value 1_+ which is not one of the enumerator values in function test_constant. | test.cpp:5:6:5:8 | Bar | Bar |
10+
| test.cpp:41:12:41:17 | (Bar)... | Cast to enum $@ with from expression with value 1 which is not one of the enumerator values in function test_constant. | test.cpp:5:6:5:8 | Bar | Bar |

0 commit comments

Comments
 (0)