Skip to content

Commit

Permalink
A7-2-1: Fix typo in query message.
Browse files Browse the repository at this point in the history
  • Loading branch information
lcartey committed Dec 5, 2023
1 parent d74222a commit 4e415d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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 |

0 comments on commit 4e415d7

Please sign in to comment.