Skip to content

Commit

Permalink
Fix test file formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
rvermeulen committed Jan 19, 2024
1 parent 41fdf07 commit 01d32f0
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions cpp/autosar/test/rules/A12-0-1/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,14 @@ class C14 {
};

class C15 {
C15& operator=(C15 const &); // NON_COMPLIANT
C15 &operator=(C15 const &); // NON_COMPLIANT
};

template<typename T>
class C16 { // COMPLIANT
C16() = default;};
template <typename T> class C16 { // COMPLIANT
C16() = default;
};

template<typename T>
class C17 { // COMPLIANT
template <typename T> class C17 { // COMPLIANT
C17() = default;
C17(C17 const &) = default;
C17(C17 &&) = default;
Expand All @@ -86,8 +85,7 @@ class C17 { // COMPLIANT
C17 &operator=(C17 &&) = default;
};

template<typename T>
class C18 { // COMPLIANT
template <typename T> class C18 { // COMPLIANT
C18() = default;
C18(C18 const &) = delete;
C18(C18 &&) = delete;
Expand All @@ -96,15 +94,15 @@ class C18 { // COMPLIANT
C18 &operator=(C18 &&) = delete;
};

template<typename T>
class C19 { // COMPLIANT
public:
template <typename T> class C19 { // COMPLIANT
public:
explicit C19(T i) : i(i) {}
C19(C19 const &) = delete;
C19(C19 &&) = delete;
virtual ~C19() = default;
C19 &operator=(C19 const &) = delete;
C19 &operator=(C19 &&) = delete;
private:
T i;

private:
T i;
};

0 comments on commit 01d32f0

Please sign in to comment.