Skip to content

Commit

Permalink
iox-#2044 Deactivate deprecated 'cert-dcl21-cpp' rule
Browse files Browse the repository at this point in the history
  • Loading branch information
elBoberido committed Oct 21, 2023
1 parent 49d974b commit c2f9a77
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
# - hicpp-member-init (duplicate of cppcoreguidelines-pro-type-member-init)
# - performance-move-const-arg (duplicate of hicpp-move-const-arg)
# - bugprone-use-after-move (duplicate of hicpp-move-const-arg)
#
# NOTE: following checks are disabled because they are deprecated
# - cert-dcl21-cpp

Checks: '
-*,
Expand Down Expand Up @@ -32,6 +35,8 @@ hicpp-*,
-readability-use-anyofallof,
-readability-named-parameter,
-cert-dcl21-cpp
'

### Temporarily disabled because massive API changes:
Expand Down
4 changes: 0 additions & 4 deletions iceoryx_dust/vocabulary/include/iox/detail/span_iterator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ class span_iterator final
return *this;
}

// Rule DCL21-CPP is deprecated
// NOLINTNEXTLINE(cert-dcl21-cpp)
constexpr span_iterator operator++(int) noexcept
{
span_iterator ret = *this;
Expand All @@ -97,8 +95,6 @@ class span_iterator final
return *this;
}

// Rule DCL21-CPP is deprecated
// NOLINTNEXTLINE(cert-dcl21-cpp)
constexpr span_iterator operator--(int) noexcept
{
span_iterator ret = *this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ struct Decrementable
return Derived{--internal::newTypeRefAccessor(self)};
}

// Rule DCL21-CPP is deprecated
// NOLINTNEXTLINE(cert-dcl21-cpp)
friend Derived operator--(T& self, int) noexcept
{
return Derived{internal::newTypeRefAccessor(self)--};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ struct Incrementable
return Derived{++internal::newTypeRefAccessor(self)};
}

// Rule DCL21-CPP is deprecated
// NOLINTNEXTLINE(cert-dcl21-cpp)
friend Derived operator++(T& self, int) noexcept
{
return Derived{internal::newTypeRefAccessor(self)++};
Expand Down

0 comments on commit c2f9a77

Please sign in to comment.