Skip to content

Commit 1fc421e

Browse files
Add full stops to query messages.
1 parent 4cb16b2 commit 1fc421e

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

c/misra/src/rules/RULE-1-5/InvalidDefineOrUndefOfStdBoolMacro.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ where
2828
macroName = directive.(PreprocessorUndef).getName() and
2929
opString = "undefine"
3030
)
31-
select directive, "Invalid " + opString + " of boolean standard macro " + macroName
31+
select directive, "Invalid " + opString + " of boolean standard macro '" + macroName + "'."

c/misra/src/rules/RULE-1-5/UseOfObsoleteMacroAtomicVarInit.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@ where
2121
invoke.getMacroName() = "ATOMIC_VAR_INIT" and
2222
flag = c.getAnArgument() and
2323
flag.regexpMatch("-std=c1[78]")
24-
select invoke, "Usage of macro ATOMIC_VAR_INIT() is considered obsolete for c version " + flag
24+
select invoke,
25+
"Usage of macro ATOMIC_VAR_INIT() is considered obsolete for c version '" + flag + "'."
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
| test.c:23:1:23:14 | #define true 3 | Invalid define of boolean standard macro true |
2-
| test.c:24:1:24:15 | #define false 3 | Invalid define of boolean standard macro false |
3-
| test.c:25:1:25:18 | #define bool int * | Invalid define of boolean standard macro bool |
4-
| test.c:26:1:26:11 | #undef true | Invalid undefine of boolean standard macro true |
5-
| test.c:27:1:27:12 | #undef false | Invalid undefine of boolean standard macro false |
6-
| test.c:28:1:28:11 | #undef bool | Invalid undefine of boolean standard macro bool |
1+
| test.c:23:1:23:14 | #define true 3 | Invalid define of boolean standard macro 'true'. |
2+
| test.c:24:1:24:15 | #define false 3 | Invalid define of boolean standard macro 'false'. |
3+
| test.c:25:1:25:18 | #define bool int * | Invalid define of boolean standard macro 'bool'. |
4+
| test.c:26:1:26:11 | #undef true | Invalid undefine of boolean standard macro 'true'. |
5+
| test.c:27:1:27:12 | #undef false | Invalid undefine of boolean standard macro 'false'. |
6+
| test.c:28:1:28:11 | #undef bool | Invalid undefine of boolean standard macro 'bool'. |
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
| test.c:30:18:30:36 | ATOMIC_VAR_INIT(value) | Usage of macro ATOMIC_VAR_INIT() is considered obsolete for c version -std=c17 |
1+
| test.c:30:18:30:36 | ATOMIC_VAR_INIT(value) | Usage of macro ATOMIC_VAR_INIT() is considered obsolete for c version '-std=c17'. |

0 commit comments

Comments
 (0)