Skip to content

Commit 1c5b8cc

Browse files
committed
Don't make the primary location show up twice
1 parent be70ae7 commit 1c5b8cc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cpp/misra/src/rules/RULE-12-3-1/UnionKeywordUsed.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ import codingstandards.cpp.misra
1818

1919
from Union u
2020
where not isExcluded(u, BannedSyntaxPackage::unionsUsedQuery())
21-
select u, "$@ is a union which is prohibited.", u, u.getName()
21+
select u, "'" + u.getName() + "' is a union which is prohibited."
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
| test.cpp:4:9:4:9 | u | $@ is a union which is prohibited. | test.cpp:4:9:4:9 | u | u |
2-
| test.cpp:13:9:13:9 | u | $@ is a union which is prohibited. | test.cpp:13:9:13:9 | u | u |
3-
| test.cpp:20:7:20:7 | u | $@ is a union which is prohibited. | test.cpp:20:7:20:7 | u | u |
1+
| test.cpp:4:9:4:9 | u | 'u' is a union which is prohibited. |
2+
| test.cpp:13:9:13:9 | u | 'u' is a union which is prohibited. |
3+
| test.cpp:20:7:20:7 | u | 'u' is a union which is prohibited. |

0 commit comments

Comments
 (0)