File tree Expand file tree Collapse file tree 2 files changed +9
-11
lines changed Expand file tree Collapse file tree 2 files changed +9
-11
lines changed Original file line number Diff line number Diff line change 56
56
// Exclude literals to instantiate a class template per example in the standard
57
57
// where an type of std::array is intialized with size 5.
58
58
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."
Original file line number Diff line number Diff line change 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. |
You can’t perform that action at this time.
0 commit comments