Skip to content

Commit 455f39c

Browse files
committed
A3-3-1: Improve alert msg
1 parent bb14956 commit 455f39c

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- `A3-3-1` - `ExternalLinkageNotDeclaredInHeaderFile.ql`:
2+
- Adjust the alert message to comply with the style guide.

cpp/autosar/src/rules/A3-3-1/ExternalLinkageNotDeclaredInHeaderFile.ql

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ where
3838
// Main functions are an exception to the rule
3939
not de.getDeclaration() instanceof MainFunction and
4040
if de.getDeclaration() instanceof Function then kind = "function" else kind = "object"
41-
select de, "Externally linked " + kind + " " + de.getName() + " not declared in header file."
41+
select de, "Externally linked " + kind + " '" + de.getName() + "' not declared in header file."
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
| test.cpp:3:5:3:6 | definition of g1 | Externally linked object g1 not declared in header file. |
2-
| test.cpp:4:12:4:13 | declaration of g2 | Externally linked object g2 not declared in header file. |
3-
| test.cpp:10:5:10:6 | definition of l1 | Externally linked object l1 not declared in header file. |
4-
| test.cpp:11:6:11:7 | definition of f1 | Externally linked function f1 not declared in header file. |
5-
| test.cpp:22:5:22:5 | definition of f | Externally linked function f not declared in header file. |
6-
| test.cpp:25:5:25:6 | declaration of f1 | Externally linked function f1 not declared in header file. |
1+
| test.cpp:3:5:3:6 | definition of g1 | Externally linked object 'g1' not declared in header file. |
2+
| test.cpp:4:12:4:13 | declaration of g2 | Externally linked object 'g2' not declared in header file. |
3+
| test.cpp:10:5:10:6 | definition of l1 | Externally linked object 'l1' not declared in header file. |
4+
| test.cpp:11:6:11:7 | definition of f1 | Externally linked function 'f1' not declared in header file. |
5+
| test.cpp:22:5:22:5 | definition of f | Externally linked function 'f' not declared in header file. |
6+
| test.cpp:25:5:25:6 | declaration of f1 | Externally linked function 'f1' not declared in header file. |

0 commit comments

Comments
 (0)