clang-format-19 formatting fixes

This commit is contained in:
zvecr
2025-12-12 21:00:35 +00:00
parent 192cf4cef6
commit 0150b7b71f
7 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -8,7 +8,7 @@
bool xap_execute_get_config_blob_chunk(xap_token_t token, uint16_t offset) {
xap_route_qmk_config_blob_chunk_t ret = {0};
bool get_config_blob_chunk(uint16_t offset, uint8_t * data, uint8_t data_len);
bool get_config_blob_chunk(uint16_t offset, uint8_t *data, uint8_t data_len);
if (!get_config_blob_chunk(offset, (uint8_t *)&ret, sizeof(ret))) {
return false;
}
+2 -2
View File
@@ -78,7 +78,7 @@ typedef struct __attribute__((packed)) xap_route_flags_t {
_Static_assert(TOTAL_XAP_ROUTE_TYPES <= (1 << (XAP_ROUTE_TYPE_BIT_COUNT)), "Number of XAP route types is too large for XAP_ROUTE_TYPE_BITS.");
_Static_assert(sizeof(xap_route_flags_t) == 1, "xap_route_flags_t is not length of 1");
typedef struct xap_route_t xap_route_t;
typedef struct xap_route_t xap_route_t;
struct __attribute__((packed)) xap_route_t {
const xap_route_flags_t flags;
union {
@@ -93,7 +93,7 @@ struct __attribute__((packed)) xap_route_t {
// XAP_VALUE / XAP_CONST_MEM
struct {
const void * const_data;
const void *const_data;
const uint8_t const_data_len;
};
};
+1 -1
View File
@@ -84,7 +84,7 @@ usb_endpoint_in_t usb_endpoints_in[USB_ENDPOINT_IN_COUNT] = {
# if defined(USB_ENDPOINTS_ARE_REORDERABLE)
[USB_ENDPOINT_IN_XAP] = QMK_USB_ENDPOINT_IN_SHARED(USB_EP_MODE_TYPE_INTR, XAP_EPSIZE, XAP_IN_EPNUM, XAP_IN_CAPACITY, NULL, QMK_USB_REPORT_STORAGE_DEFAULT(XAP_EPSIZE)),
# else
[USB_ENDPOINT_IN_XAP] = QMK_USB_ENDPOINT_IN(USB_EP_MODE_TYPE_INTR, XAP_EPSIZE, XAP_IN_EPNUM, XAP_IN_CAPACITY, NULL, QMK_USB_REPORT_STORAGE_DEFAULT(XAP_EPSIZE)),
[USB_ENDPOINT_IN_XAP] = QMK_USB_ENDPOINT_IN(USB_EP_MODE_TYPE_INTR, XAP_EPSIZE, XAP_IN_EPNUM, XAP_IN_CAPACITY, NULL, QMK_USB_REPORT_STORAGE_DEFAULT(XAP_EPSIZE)),
# endif
#endif
+1 -1
View File
@@ -571,7 +571,7 @@ void xap_broadcast(uint8_t type, const void *data, size_t length) {
}
void xap_receive_base(const void *data) {
const uint8_t * u8data = (const uint8_t *)data;
const uint8_t *u8data = (const uint8_t *)data;
xap_request_header_t *header = (xap_request_header_t *)&u8data[0];
if (header->length <= (XAP_EPSIZE - sizeof(xap_request_header_t))) {
xap_receive(header->token, &u8data[sizeof(xap_request_header_t)], header->length);
+1 -1
View File
@@ -246,7 +246,7 @@ void xap_broadcast(uint8_t type, const void *data, size_t length) {
}
void xap_receive_base(const void *data) {
const uint8_t * u8data = (const uint8_t *)data;
const uint8_t *u8data = (const uint8_t *)data;
xap_request_header_t *header = (xap_request_header_t *)&u8data[0];
if (header->length <= (XAP_EPSIZE - sizeof(xap_request_header_t))) {
xap_receive(header->token, &u8data[sizeof(xap_request_header_t)], header->length);
+1 -1
View File
@@ -287,7 +287,7 @@ enum usb_endpoints {
# if STM32_USB_USE_OTG1
# define XAP_OUT_EPNUM XAP_IN_EPNUM
# else
XAP_OUT_EPNUM = NEXT_EPNUM,
XAP_OUT_EPNUM = NEXT_EPNUM,
# endif
#endif
};
+1 -1
View File
@@ -229,7 +229,7 @@ void xap_broadcast(uint8_t type, const void *data, size_t length) {
}
void xap_receive_base(const void *data) {
const uint8_t * u8data = (const uint8_t *)data;
const uint8_t *u8data = (const uint8_t *)data;
xap_request_header_t *header = (xap_request_header_t *)&u8data[0];
if (header->length <= (XAP_BUFFER_SIZE - sizeof(xap_request_header_t))) {
xap_receive(header->token, &u8data[sizeof(xap_request_header_t)], header->length);