Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

A7-2-1: Fix minor typo #469

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions change_notes/2023-12-05-a7-2-1-typo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* `A7-2-1` - fix typo in some alert messages.
2 changes: 1 addition & 1 deletion cpp/autosar/src/rules/A7-2-1/NonEnumeratorEnumValue.ql
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ where
then
description =
"Cast to enum $@ with from expression with value " + c.getExpr().getValue().toFloat() +
"_+ which is not one of the enumerator values in function " +
" which is not one of the enumerator values in function " +
c.getEnclosingFunction().getName() + "."
else
if exists(upperBound(c.getExpr()))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |