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 */
|
||||
|
||||
@ -1474,7 +1474,7 @@ invoke_native_with_hw_bound_check(WASMExecEnv *exec_env, void *func_ptr,
|
||||
(void)jmpbuf_node_pop;
|
||||
return ret;
|
||||
}
|
||||
#define invoke_native_internal invoke_native_with_hw_bound_check
|
||||
#define invoke_native_internal invoke_native_with_hw_bound_check /* NOLINT */
|
||||
#else /* else of OS_ENABLE_HW_BOUND_CHECK */
|
||||
static inline bool
|
||||
invoke_native_internal(WASMExecEnv *exec_env, void *func_ptr,
|
||||
|
||||
Reference in New Issue
Block a user