Skip to content

Commit 651cdd0

Browse files
committed
reduce clang-tidy warnings
1 parent f233e3f commit 651cdd0

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/enum19.lib/enum19/Enum.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
enum class NAME : UNDERLYING { __VA_ARGS__ }; \
1818
constexpr auto metaEnumFor(enum19::ADL*, NAME*) { \
1919
using Enum19_ValueWrapper = ::enum19::details::ValueWrapper<UNDERLYING>; \
20-
constexpr Enum19_ValueWrapper __VA_ARGS__; \
20+
constexpr Enum19_ValueWrapper __VA_ARGS__; /* NOLINT */ \
2121
return ::enum19::details::buildMetaEnumFor<NAME>(#NAME, #__VA_ARGS__, __VA_ARGS__); \
2222
} \
2323
ENUM19_EXTRAS(NAME)
@@ -66,8 +66,6 @@ template<class Underlying> struct ValueWrapper {
6666
constexpr operator Underlying() const { return value; }
6767
};
6868

69-
template<class... Args> constexpr auto countArgs(Args&&...) -> size_t { return sizeof...(Args); }
70-
7169
template<class Enum, size_t NameN, size_t BodyN, class... Args>
7270
constexpr auto buildMetaEnumFor(
7371
const ConstCharArray<NameN>& name,

0 commit comments

Comments
 (0)