Skip to content

Commit 4ef3eed

Browse files
committed
iox-eclipse-iceoryx#2044 Deactivate deprecated 'cert-dcl21-cpp' rule
1 parent 0a16f4a commit 4ef3eed

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

.clang-tidy

+5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
# - hicpp-member-init (duplicate of cppcoreguidelines-pro-type-member-init)
66
# - performance-move-const-arg (duplicate of hicpp-move-const-arg)
77
# - bugprone-use-after-move (duplicate of hicpp-move-const-arg)
8+
#
9+
# NOTE: following checks are disabled because they are deprecated
10+
# - cert-dcl21-cpp
811

912
Checks: '
1013
-*,
@@ -32,6 +35,8 @@ hicpp-*,
3235
-readability-use-anyofallof,
3336
-readability-named-parameter,
3437
38+
-cert-dcl21-cpp
39+
3540
'
3641

3742
### Temporarily disabled because massive API changes:

iceoryx_dust/vocabulary/include/iox/detail/span_iterator.hpp

-4
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ class span_iterator final
8080
return *this;
8181
}
8282

83-
// Rule DCL21-CPP is deprecated
84-
// NOLINTNEXTLINE(cert-dcl21-cpp)
8583
constexpr span_iterator operator++(int) noexcept
8684
{
8785
span_iterator ret = *this;
@@ -97,8 +95,6 @@ class span_iterator final
9795
return *this;
9896
}
9997

100-
// Rule DCL21-CPP is deprecated
101-
// NOLINTNEXTLINE(cert-dcl21-cpp)
10298
constexpr span_iterator operator--(int) noexcept
10399
{
104100
span_iterator ret = *this;

iceoryx_hoofs/design/include/iox/detail/newtype/decrementable.hpp

-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ struct Decrementable
3636
return Derived{--internal::newTypeRefAccessor(self)};
3737
}
3838

39-
// Rule DCL21-CPP is deprecated
40-
// NOLINTNEXTLINE(cert-dcl21-cpp)
4139
friend Derived operator--(T& self, int) noexcept
4240
{
4341
return Derived{internal::newTypeRefAccessor(self)--};

iceoryx_hoofs/design/include/iox/detail/newtype/incrementable.hpp

-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ struct Incrementable
3636
return Derived{++internal::newTypeRefAccessor(self)};
3737
}
3838

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

0 commit comments

Comments
 (0)