Skip to content

Commit

Permalink
Add FALSE_NEGATIVE markers for #811
Browse files Browse the repository at this point in the history
  • Loading branch information
lcartey committed Dec 5, 2024
1 parent 365c090 commit 7595aa4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cpp/autosar/test/rules/A12-8-6/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ class DerivedClass1 // COMPLIANT - not a base class itself

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

Expand Down Expand Up @@ -87,7 +87,7 @@ template <class T1> class BaseClass7 {
BaseClass7 &operator=(BaseClass7 const &) = default; // NON_COMPLIANT
BaseClass7 &operator=(BaseClass7 &&) = default; // NON_COMPLIANT
int operator=(int i); // COMPLIANT - not an assignment operator
}; // COMPLIANT
};

template <class T>
class DerivedClass7 // COMPLIANT - not a base class itself
Expand Down Expand Up @@ -121,7 +121,7 @@ class DerivedClass9 // COMPLIANT - not a base class itself
T t;
};

template <class T> class BaseClass9 { // NON_COMPLIANT
template <class T> class BaseClass9 { // NON_COMPLIANT[FALSE_NEGATIVE]

public:
BaseClass9() {}
Expand Down

0 comments on commit 7595aa4

Please sign in to comment.