Skip to content

Commit 67d06e9

Browse files
committed
Surround code bits with single-quotes
1 parent 33e536d commit 67d06e9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cpp/common/src/codingstandards/cpp/rules/unionkeywordused/UnionKeywordUsed.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ module UnionKeywordUsed<UnionKeywordUsedConfigSig Config> {
3434
query predicate problems(Union u, string message) {
3535
not isExcluded(u, Config::getQuery()) and
3636
not u.getParentScope() instanceof TaggedUnion and
37-
message = u.getName() + " is not a tagged union."
37+
message = "'" + u.getName() + "' is not a tagged union."
3838
}
3939
}

cpp/misra/src/rules/RULE-8-3-2/BuiltInUnaryPlusOperatorShouldNotBeUsed.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 UnaryPlusExpr e
2020
where not e.isFromUninstantiatedTemplate(_)
21-
select e, "Use of built-in unary + operator."
21+
select e, "Use of built-in unary '+' operator."

0 commit comments

Comments
 (0)