Skip to content

Commit 26ebb66

Browse files
Fix metadata misspelling, clang format version difference
1 parent 44f288c commit 26ebb66

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

cpp/misra/src/rules/RULE-14-1-1/PrivateAndPublicDataMembersMixed.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @problem.severity warning
99
* @tags external/misra/id/rule-14-1-1
1010
* scope/single-translation-unit
11-
* maintanability
11+
* maintainability
1212
* external/misra/enforcement/decidable
1313
* external/misra/obligation/advisory
1414
*/

cpp/misra/test/rules/RULE-15-0-2/test.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
class CompliantClass {
99
public:
1010
CompliantClass() = default;
11-
CompliantClass(CompliantClass const &); // COMPLIANT
12-
CompliantClass(CompliantClass &&) noexcept; // COMPLIANT
13-
CompliantClass &operator=(CompliantClass const &) &; // COMPLIANT
14-
CompliantClass &operator=(CompliantClass &&) & noexcept; // COMPLIANT
11+
CompliantClass(CompliantClass const &); // COMPLIANT
12+
CompliantClass(CompliantClass &&) noexcept; // COMPLIANT
13+
CompliantClass &operator=(CompliantClass const &) &; // COMPLIANT
14+
CompliantClass &operator=(CompliantClass &&) &noexcept; // COMPLIANT
1515
};
1616

1717
class CompliantWithAlternatives {
@@ -22,9 +22,9 @@ class CompliantWithAlternatives {
2222
explicit constexpr CompliantWithAlternatives(
2323
CompliantWithAlternatives &&) noexcept; // COMPLIANT
2424
constexpr CompliantWithAlternatives &
25-
operator=(const CompliantWithAlternatives &) & noexcept; // COMPLIANT
25+
operator=(const CompliantWithAlternatives &) &noexcept; // COMPLIANT
2626
constexpr CompliantWithAlternatives &
27-
operator=(CompliantWithAlternatives &&) & noexcept; // COMPLIANT
27+
operator=(CompliantWithAlternatives &&) &noexcept; // COMPLIANT
2828
};
2929

3030
class CompliantVoidReturn {
@@ -35,7 +35,7 @@ class CompliantVoidReturn {
3535
void
3636
operator=(CompliantVoidReturn const &) &; // COMPLIANT - void return allowed
3737
void operator=(
38-
CompliantVoidReturn &&) & noexcept; // COMPLIANT - void return allowed
38+
CompliantVoidReturn &&) &noexcept; // COMPLIANT - void return allowed
3939
};
4040

4141
// Non-compliant examples
@@ -146,10 +146,10 @@ class DeletedOperations {
146146
struct CompliantStruct {
147147
public:
148148
CompliantStruct() = default;
149-
CompliantStruct(CompliantStruct const &); // COMPLIANT
150-
CompliantStruct(CompliantStruct &&) noexcept; // COMPLIANT
151-
CompliantStruct &operator=(CompliantStruct const &) &; // COMPLIANT
152-
CompliantStruct &operator=(CompliantStruct &&) & noexcept; // COMPLIANT
149+
CompliantStruct(CompliantStruct const &); // COMPLIANT
150+
CompliantStruct(CompliantStruct &&) noexcept; // COMPLIANT
151+
CompliantStruct &operator=(CompliantStruct const &) &; // COMPLIANT
152+
CompliantStruct &operator=(CompliantStruct &&) &noexcept; // COMPLIANT
153153
};
154154

155155
struct NonCompliantStruct {

rule_packages/cpp/Classes2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"short_name": "PrivateAndPublicDataMembersMixed",
6060
"tags": [
6161
"scope/single-translation-unit",
62-
"maintanability"
62+
"maintainability"
6363
]
6464
}
6565
],

0 commit comments

Comments
 (0)