Skip to content

Commit 19eed80

Browse files
authored
Merge pull request #469 from github/lcartey/a7-2-1-typo
`A7-2-1`: Fix minor typo
2 parents 5129f14 + f4f5187 commit 19eed80

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* `A7-2-1` - fix typo in some alert messages.

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)