Skip to content

Commit

Permalink
reduce clang-tidy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
arBmind committed Feb 5, 2024
1 parent f233e3f commit 651cdd0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/enum19.lib/enum19/Enum.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
enum class NAME : UNDERLYING { __VA_ARGS__ }; \
constexpr auto metaEnumFor(enum19::ADL*, NAME*) { \
using Enum19_ValueWrapper = ::enum19::details::ValueWrapper<UNDERLYING>; \
constexpr Enum19_ValueWrapper __VA_ARGS__; \
constexpr Enum19_ValueWrapper __VA_ARGS__; /* NOLINT */ \
return ::enum19::details::buildMetaEnumFor<NAME>(#NAME, #__VA_ARGS__, __VA_ARGS__); \
} \
ENUM19_EXTRAS(NAME)
Expand Down Expand Up @@ -66,8 +66,6 @@ template<class Underlying> struct ValueWrapper {
constexpr operator Underlying() const { return value; }
};

template<class... Args> constexpr auto countArgs(Args&&...) -> size_t { return sizeof...(Args); }

template<class Enum, size_t NameN, size_t BodyN, class... Args>
constexpr auto buildMetaEnumFor(
const ConstCharArray<NameN>& name,
Expand Down

0 comments on commit 651cdd0

Please sign in to comment.