Skip to content

Commit 27ca21d

Browse files
committed
Fix grammar in alert message RULE-11-3-1
1 parent e21ea48 commit 27ca21d

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

cpp/misra/src/rules/RULE-11-3-1/VariableDeclaredArrayType.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ where
3232
exists(ArrayType a | v.getType() = a | not v instanceof FixedSizeCharArray) and
3333
// Exclude the compiler generated __func__ as it is the only way to access the function name information
3434
not v.getName() = "__func__"
35-
select v, "Variable " + v.getName() + " is array type."
35+
select v, "Variable " + v.getName() + " has an array type."
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
| test.cpp:5:5:5:5 | g | Variable g is array type. |
2-
| test.cpp:9:24:9:24 | a | Variable a is array type. |
3-
| test.cpp:10:7:10:8 | a1 | Variable a1 is array type. |
4-
| test.cpp:14:7:14:8 | a1 | Variable a1 is array type. |
5-
| test.cpp:19:7:19:7 | x | Variable x is array type. |
6-
| test.cpp:20:17:20:17 | a | Variable a is array type. |
7-
| test.cpp:22:8:22:9 | x1 | Variable x1 is array type. |
8-
| test.cpp:28:6:28:7 | g1 | Variable g1 is array type. |
9-
| test.cpp:34:21:34:21 | p | Variable p is array type. |
1+
| test.cpp:5:5:5:5 | g | Variable g has an array type. |
2+
| test.cpp:9:24:9:24 | a | Variable a has an array type. |
3+
| test.cpp:10:7:10:8 | a1 | Variable a1 has an array type. |
4+
| test.cpp:14:7:14:8 | a1 | Variable a1 has an array type. |
5+
| test.cpp:19:7:19:7 | x | Variable x has an array type. |
6+
| test.cpp:20:17:20:17 | a | Variable a has an array type. |
7+
| test.cpp:22:8:22:9 | x1 | Variable x1 has an array type. |
8+
| test.cpp:28:6:28:7 | g1 | Variable g1 has an array type. |
9+
| test.cpp:34:21:34:21 | p | Variable p has an array type. |

0 commit comments

Comments
 (0)