Skip to content

Commit b79e986

Browse files
committed
Format alert according to style-guide
1 parent 5f90fae commit b79e986

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

cpp/autosar/src/rules/A5-1-1/LiteralValueUsedOutsideTypeInit.ql

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,4 @@ where
5656
// Exclude literals to instantiate a class template per example in the standard
5757
// where an type of std::array is intialized with size 5.
5858
not l = any(ClassTemplateInstantiation cti).getATemplateArgument()
59-
select l,
60-
"Literal value " + getTruncatedLiteralText(l) + " used outside of type initialization " +
61-
l.getAPrimaryQlClass()
59+
select l, "Literal value '" + getTruncatedLiteralText(l) + "' used outside of type initialization."
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
| test.cpp:5:9:5:25 | constant string | Literal value "constant string" used outside of type initialization StringLiteral |
2-
| test.cpp:14:23:14:25 | 100 | Literal value 100 used outside of type initialization Literal |
3-
| test.cpp:54:7:54:7 | 1 | Literal value 1 used outside of type initialization Literal |
4-
| test.cpp:75:23:75:28 | test | Literal value "test" used outside of type initialization StringLiteral |
5-
| test.cpp:76:19:76:28 | not okay | Literal value "not okay" used outside of type initialization StringLiteral |
6-
| test.cpp:104:8:104:8 | 4 | Literal value 4 used outside of type initialization Literal |
7-
| test.cpp:104:8:104:8 | 4 | Literal value 4 used outside of type initialization Literal |
8-
| test.cpp:104:8:104:8 | 4 | Literal value 4 used outside of type initialization Literal |
1+
| test.cpp:5:9:5:25 | constant string | Literal value '"constant string"' used outside of type initialization. |
2+
| test.cpp:14:23:14:25 | 100 | Literal value '100' used outside of type initialization. |
3+
| test.cpp:54:7:54:7 | 1 | Literal value '1' used outside of type initialization. |
4+
| test.cpp:75:23:75:28 | test | Literal value '"test"' used outside of type initialization. |
5+
| test.cpp:76:19:76:28 | not okay | Literal value '"not okay"' used outside of type initialization. |
6+
| test.cpp:104:8:104:8 | 4 | Literal value '4' used outside of type initialization. |
7+
| test.cpp:104:8:104:8 | 4 | Literal value '4' used outside of type initialization. |
8+
| test.cpp:104:8:104:8 | 4 | Literal value '4' used outside of type initialization. |

0 commit comments

Comments
 (0)