Skip to content

Commit 7595aa4

Browse files
committed
Add FALSE_NEGATIVE markers for #811
#811
1 parent 365c090 commit 7595aa4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cpp/autosar/test/rules/A12-8-6/test.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ class DerivedClass1 // COMPLIANT - not a base class itself
1212

1313
// Base class with compiler generated move/copy is not compliant, because they
1414
// are public by default
15-
class BaseClass2 {}; // NON_COMPLIANT - compiler generated move and assignment
16-
// are in contravention
15+
class BaseClass2 {}; // NON_COMPLIANT[FALSE_NEGATIVE] - compiler generated move
16+
// and assignment are in contravention
1717
class DerivedClass2 // COMPLIANT - not a base class itself
1818
: public BaseClass2 {};
1919

@@ -87,7 +87,7 @@ template <class T1> class BaseClass7 {
8787
BaseClass7 &operator=(BaseClass7 const &) = default; // NON_COMPLIANT
8888
BaseClass7 &operator=(BaseClass7 &&) = default; // NON_COMPLIANT
8989
int operator=(int i); // COMPLIANT - not an assignment operator
90-
}; // COMPLIANT
90+
};
9191

9292
template <class T>
9393
class DerivedClass7 // COMPLIANT - not a base class itself
@@ -121,7 +121,7 @@ class DerivedClass9 // COMPLIANT - not a base class itself
121121
T t;
122122
};
123123

124-
template <class T> class BaseClass9 { // NON_COMPLIANT
124+
template <class T> class BaseClass9 { // NON_COMPLIANT[FALSE_NEGATIVE]
125125

126126
public:
127127
BaseClass9() {}

0 commit comments

Comments
 (0)