Skip to content

Commit e2590ec

Browse files
committed
Regenerate package files
1 parent b784771 commit e2590ec

File tree

19 files changed

+60
-38
lines changed

19 files changed

+60
-38
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// GENERATED FILE - DO NOT MODIFY
22
import codingstandards.cpp.rules.resultofanassignmentoperatorshouldnotbeused_shared.ResultOfAnAssignmentOperatorShouldNotBeUsed_shared
33

4-
class TestFileQuery extends ResultOfAnAssignmentOperatorShouldNotBeUsed_sharedSharedQuery, TestQuery
5-
{ }
4+
class TestFileQuery extends ResultOfAnAssignmentOperatorShouldNotBeUsed_sharedSharedQuery, TestQuery {
5+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
| test.c:5:3:5:5 | 10 | Non zero octal literal 012. |
2+
| test.c:6:3:6:5 | 44 | Non zero octal literal 054. |
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// GENERATED FILE - DO NOT MODIFY
2+
import codingstandards.cpp.rules.useofnonzerooctalliteral_shared.UseOfNonZeroOctalLiteral_shared
3+
4+
class TestFileQuery extends UseOfNonZeroOctalLiteral_sharedSharedQuery, TestQuery { }
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// NOTICE: THE TEST CASES BELOW ARE ALSO INCLUDED IN THE C++ TEST CASE AND
2+
// CHANGES SHOULD BE REFLECTED THERE AS WELL.
3+
void test_non_zero_octal() {
4+
0; // COMPLIANT - octal literal zero permitted
5+
012; // NON_COMPLIANT
6+
054; // NON_COMPLIANT
7+
}

c/misra/test/rules/RULE-7-1/OctalConstantsUsed.expected

Lines changed: 0 additions & 2 deletions
This file was deleted.

c/misra/test/rules/RULE-7-1/OctalConstantsUsed.qlref

Lines changed: 0 additions & 1 deletion
This file was deleted.

c/misra/test/rules/RULE-7-1/test.c

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
| test.cpp:3:3:3:8 | 10 | This literal contains the non-zero octal escape code \\012. |
2+
| test.cpp:4:3:4:8 | 44 | This literal contains the non-zero octal escape code \\054. |
3+
| test.cpp:5:3:5:9 | 3129 | This literal contains the non-zero octal escape code \\014. |
4+
| test.cpp:7:3:7:8 | \n | This literal contains the non-zero octal escape code \\012. |
5+
| test.cpp:8:3:8:8 | , | This literal contains the non-zero octal escape code \\054. |
6+
| test.cpp:9:3:9:9 | \u000c9 | This literal contains the non-zero octal escape code \\014. |
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rules/M2-13-2/UseOfNonZeroOctalEscape.ql
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
void test_non_zero_octal() {
2+
'\0'; // COMPLIANT - octal zero escape sequence permitted
3+
'\012'; // NON_COMPLIANT
4+
'\054'; // NON_COMPLIANT
5+
'\0149'; // NON_COMPLIANT
6+
"\0"; // COMPLIANT - octal zero escape sequence permitted
7+
"\012"; // NON_COMPLIANT
8+
"\054"; // NON_COMPLIANT
9+
"\0149"; // NON_COMPLIANT
10+
}

0 commit comments

Comments
 (0)