tree-wide: Drop NOLINTNEXTLINE comments
Not needed anymore after recent refactoring.
This commit is contained in:
@@ -28,7 +28,6 @@ typedef void* (*mfree_func_t)(void *p);
|
||||
})
|
||||
|
||||
#define _DEFINE_TRIVIAL_REF_FUNC(type, name, scope) \
|
||||
/* NOLINTNEXTLINE (readability-inconsistent-declaration-parameter-name) */ \
|
||||
scope type *name##_ref(type *p) { \
|
||||
if (!p) \
|
||||
return NULL; \
|
||||
@@ -43,7 +42,6 @@ typedef void* (*mfree_func_t)(void *p);
|
||||
}
|
||||
|
||||
#define _DEFINE_TRIVIAL_UNREF_FUNC(type, name, free_func, scope) \
|
||||
/* NOLINTNEXTLINE (readability-inconsistent-declaration-parameter-name) */ \
|
||||
scope type *name##_unref(type *p) { \
|
||||
if (!p) \
|
||||
return NULL; \
|
||||
|
||||
@@ -15,7 +15,6 @@ ssize_t string_table_lookup_from_string_fallback(const char * const *table, size
|
||||
|
||||
/* For basic lookup tables with strictly enumerated entries */
|
||||
#define _DEFINE_STRING_TABLE_LOOKUP_TO_STRING(name, type, scope) \
|
||||
/* NOLINTNEXTLINE (readability-inconsistent-declaration-parameter-name) */ \
|
||||
scope const char* name##_to_string(type i) { \
|
||||
return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \
|
||||
}
|
||||
@@ -31,7 +30,6 @@ ssize_t string_table_lookup_from_string_fallback(const char * const *table, size
|
||||
}
|
||||
|
||||
#define _DEFINE_STRING_TABLE_LOOKUP_TO_STRING_FALLBACK(name, type, max, scope) \
|
||||
/* NOLINTNEXTLINE (readability-inconsistent-declaration-parameter-name) */ \
|
||||
scope int name##_to_string_alloc(type i, char **ret) { \
|
||||
return string_table_lookup_to_string_fallback(name##_table, ELEMENTSOF(name##_table), i, max, ret); \
|
||||
}
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
#include "macro-fundamental.h"
|
||||
|
||||
#define _DEFINE_STRING_TABLE_LOOKUP_TO_STRING(name,type,scope) \
|
||||
/* NOLINTNEXTLINE (readability-inconsistent-declaration-parameter-name) */ \
|
||||
scope const char* name##_to_string(type i) { \
|
||||
assert(i >= 0 && i < (type) ELEMENTSOF(name##_table)); \
|
||||
return name##_table[i]; \
|
||||
|
||||
@@ -55,7 +55,6 @@ static bool rtnl_message_type_is_nsid(uint16_t type) {
|
||||
}
|
||||
|
||||
#define DEFINE_RTNL_MESSAGE_SETTER(class, header_type, element, name, value_type) \
|
||||
/* NOLINTNEXTLINE (readability-inconsistent-declaration-parameter-name) */ \
|
||||
int sd_rtnl_message_##class##_set_##name(sd_netlink_message *m, value_type value) { \
|
||||
assert_return(m, -EINVAL); \
|
||||
assert_return(m->hdr, -EINVAL); \
|
||||
@@ -67,7 +66,6 @@ static bool rtnl_message_type_is_nsid(uint16_t type) {
|
||||
}
|
||||
|
||||
#define DEFINE_RTNL_MESSAGE_PREFIXLEN_SETTER(class, header_type, family_element, element, name, value_type) \
|
||||
/* NOLINTNEXTLINE (readability-inconsistent-declaration-parameter-name) */ \
|
||||
int sd_rtnl_message_##class##_set_##name(sd_netlink_message *m, value_type value) { \
|
||||
assert_return(m, -EINVAL); \
|
||||
assert_return(m->hdr, -EINVAL); \
|
||||
|
||||
Reference in New Issue
Block a user