Add comments to suppress warning from clang-tidy (#3088)
Suppress style warnings for macro definition, name of these macros is inconsistent with others (upper case).
This commit is contained in:
@ -214,6 +214,8 @@ GET_U16_FROM_ADDR(const uint8 *p)
|
||||
p += sizeof(type); \
|
||||
} while (0)
|
||||
|
||||
/* NOLINTBEGIN, disable lint for this region with clang-tidy */
|
||||
|
||||
#define read_byte_array(p, p_end, addr, len) \
|
||||
do { \
|
||||
CHECK_BUF(p, p_end, len); \
|
||||
@ -236,6 +238,8 @@ GET_U16_FROM_ADDR(const uint8 *p)
|
||||
#define read_uint32(p, p_end, res) TEMPLATE_READ(p, p_end, res, uint32)
|
||||
#define read_uint64(p, p_end, res) TEMPLATE_READ(p, p_end, res, uint64)
|
||||
|
||||
/* NOLINTEND */
|
||||
|
||||
/* Legal values for bin_type */
|
||||
#define BIN_TYPE_ELF32L 0 /* 32-bit little endian */
|
||||
#define BIN_TYPE_ELF32B 1 /* 32-bit big endian */
|
||||
|
||||
Reference in New Issue
Block a user