Skip to content

Commit

Permalink
Committing clang-format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 18, 2024
1 parent ae27cd1 commit e616ecc
Show file tree
Hide file tree
Showing 5 changed files with 113 additions and 100 deletions.
3 changes: 2 additions & 1 deletion src/H5Tconv_bitfield.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ H5T__conv_b_b(const H5T_t *src, const H5T_t *dst, H5T_cdata_t *cdata, const H5T_
{
except_ret = (conv_ctx->u.conv.cb_struct.func)(
H5T_CONV_EXCEPT_RANGE_HI, conv_ctx->u.conv.src_type_id,
conv_ctx->u.conv.dst_type_id, src_rev, d, conv_ctx->u.conv.cb_struct.user_data);
conv_ctx->u.conv.dst_type_id, src_rev, d,
conv_ctx->u.conv.cb_struct.user_data);
}
H5_AFTER_USER_CB(FAIL)
} /* end if */
Expand Down
6 changes: 3 additions & 3 deletions src/H5Tconv_complex.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/***********/
/* Headers */
/***********/
#include "H5private.h" /* Generic Functions */
#include "H5private.h" /* Generic Functions */
#include "H5Eprivate.h" /* Error handling */
#include "H5Tconv.h" /* Datatype conversions */
#include "H5Tconv_macros.h"
Expand Down Expand Up @@ -632,8 +632,8 @@ H5T__conv_complex_part(const H5T_t *src_p, const H5T_t *dst_p, uint8_t *s, uint8
H5_BEFORE_USER_CB(FAIL)
{
except_ret = (conv_ctx->u.conv.cb_struct.func)(
H5T_CONV_EXCEPT_RANGE_HI, conv_ctx->u.conv.src_type_id, conv_ctx->u.conv.dst_type_id, src_rev,
d, conv_ctx->u.conv.cb_struct.user_data);
H5T_CONV_EXCEPT_RANGE_HI, conv_ctx->u.conv.src_type_id, conv_ctx->u.conv.dst_type_id,
src_rev, d, conv_ctx->u.conv.cb_struct.user_data);
}
H5_AFTER_USER_CB(FAIL)
}
Expand Down
26 changes: 16 additions & 10 deletions src/H5Tconv_float.c
Original file line number Diff line number Diff line change
Expand Up @@ -544,8 +544,8 @@ H5T__conv_f_f_loop(const H5T_t *src_p, const H5T_t *dst_p, const H5T_conv_ctx_t
H5_BEFORE_USER_CB(FAIL)
{
except_ret = (conv_ctx->u.conv.cb_struct.func)(
H5T_CONV_EXCEPT_RANGE_HI, conv_ctx->u.conv.src_type_id, conv_ctx->u.conv.dst_type_id,
src_rev, d, conv_ctx->u.conv.cb_struct.user_data);
H5T_CONV_EXCEPT_RANGE_HI, conv_ctx->u.conv.src_type_id,
conv_ctx->u.conv.dst_type_id, src_rev, d, conv_ctx->u.conv.cb_struct.user_data);
}
H5_AFTER_USER_CB(FAIL)
}
Expand Down Expand Up @@ -1112,8 +1112,8 @@ H5T__conv_f_i_loop(const H5T_t *src_p, const H5T_t *dst_p, const H5T_conv_ctx_t
H5_BEFORE_USER_CB(FAIL)
{
except_ret = (conv_ctx->u.conv.cb_struct.func)(
H5T_CONV_EXCEPT_RANGE_LOW, conv_ctx->u.conv.src_type_id, conv_ctx->u.conv.dst_type_id,
src_rev, d, conv_ctx->u.conv.cb_struct.user_data);
H5T_CONV_EXCEPT_RANGE_LOW, conv_ctx->u.conv.src_type_id,
conv_ctx->u.conv.dst_type_id, src_rev, d, conv_ctx->u.conv.cb_struct.user_data);
}
H5_AFTER_USER_CB(FAIL)

Expand All @@ -1138,7 +1138,8 @@ H5T__conv_f_i_loop(const H5T_t *src_p, const H5T_t *dst_p, const H5T_conv_ctx_t
{
except_ret = (conv_ctx->u.conv.cb_struct.func)(
H5T_CONV_EXCEPT_RANGE_HI, conv_ctx->u.conv.src_type_id,
conv_ctx->u.conv.dst_type_id, src_rev, d, conv_ctx->u.conv.cb_struct.user_data);
conv_ctx->u.conv.dst_type_id, src_rev, d,
conv_ctx->u.conv.cb_struct.user_data);
}
H5_AFTER_USER_CB(FAIL)
}
Expand All @@ -1164,7 +1165,8 @@ H5T__conv_f_i_loop(const H5T_t *src_p, const H5T_t *dst_p, const H5T_conv_ctx_t
{
except_ret = (conv_ctx->u.conv.cb_struct.func)(
H5T_CONV_EXCEPT_TRUNCATE, conv_ctx->u.conv.src_type_id,
conv_ctx->u.conv.dst_type_id, src_rev, d, conv_ctx->u.conv.cb_struct.user_data);
conv_ctx->u.conv.dst_type_id, src_rev, d,
conv_ctx->u.conv.cb_struct.user_data);
}
H5_AFTER_USER_CB(FAIL)
}
Expand Down Expand Up @@ -1197,7 +1199,8 @@ H5T__conv_f_i_loop(const H5T_t *src_p, const H5T_t *dst_p, const H5T_conv_ctx_t
{
except_ret = (conv_ctx->u.conv.cb_struct.func)(
H5T_CONV_EXCEPT_TRUNCATE, conv_ctx->u.conv.src_type_id,
conv_ctx->u.conv.dst_type_id, src_rev, d, conv_ctx->u.conv.cb_struct.user_data);
conv_ctx->u.conv.dst_type_id, src_rev, d,
conv_ctx->u.conv.cb_struct.user_data);
}
H5_AFTER_USER_CB(FAIL)
}
Expand Down Expand Up @@ -1233,7 +1236,8 @@ H5T__conv_f_i_loop(const H5T_t *src_p, const H5T_t *dst_p, const H5T_conv_ctx_t
{
except_ret = (conv_ctx->u.conv.cb_struct.func)(
H5T_CONV_EXCEPT_RANGE_LOW, conv_ctx->u.conv.src_type_id,
conv_ctx->u.conv.dst_type_id, src_rev, d, conv_ctx->u.conv.cb_struct.user_data);
conv_ctx->u.conv.dst_type_id, src_rev, d,
conv_ctx->u.conv.cb_struct.user_data);
}
H5_AFTER_USER_CB(FAIL)
}
Expand Down Expand Up @@ -1261,7 +1265,8 @@ H5T__conv_f_i_loop(const H5T_t *src_p, const H5T_t *dst_p, const H5T_conv_ctx_t
{
except_ret = (conv_ctx->u.conv.cb_struct.func)(
H5T_CONV_EXCEPT_RANGE_HI, conv_ctx->u.conv.src_type_id,
conv_ctx->u.conv.dst_type_id, src_rev, d, conv_ctx->u.conv.cb_struct.user_data);
conv_ctx->u.conv.dst_type_id, src_rev, d,
conv_ctx->u.conv.cb_struct.user_data);
}
H5_AFTER_USER_CB(FAIL)
}
Expand All @@ -1287,7 +1292,8 @@ H5T__conv_f_i_loop(const H5T_t *src_p, const H5T_t *dst_p, const H5T_conv_ctx_t
{
except_ret = (conv_ctx->u.conv.cb_struct.func)(
H5T_CONV_EXCEPT_TRUNCATE, conv_ctx->u.conv.src_type_id,
conv_ctx->u.conv.dst_type_id, src_rev, d, conv_ctx->u.conv.cb_struct.user_data);
conv_ctx->u.conv.dst_type_id, src_rev, d,
conv_ctx->u.conv.cb_struct.user_data);
}
H5_AFTER_USER_CB(FAIL)
}
Expand Down
20 changes: 13 additions & 7 deletions src/H5Tconv_integer.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@ H5T__conv_i_i(const H5T_t *src, const H5T_t *dst, H5T_cdata_t *cdata, const H5T_
}
else if (first >= dst->shared->u.atomic.prec) {
/*overflow*/
if (conv_ctx->u.conv.cb_struct.func) { /*If user's exception handler is present, use it*/
if (conv_ctx->u.conv.cb_struct
.func) { /*If user's exception handler is present, use it*/
/* Reverse source buffer order first */
H5T__reverse_order(src_rev, s, src);

Expand Down Expand Up @@ -240,7 +241,8 @@ H5T__conv_i_i(const H5T_t *src, const H5T_t *dst, H5T_cdata_t *cdata, const H5T_
*/
if (first + 1 == src->shared->u.atomic.prec) {
/*overflow - source is negative*/
if (conv_ctx->u.conv.cb_struct.func) { /*If user's exception handler is present, use it*/
if (conv_ctx->u.conv.cb_struct
.func) { /*If user's exception handler is present, use it*/
/* Reverse source buffer order first */
H5T__reverse_order(src_rev, s, src);

Expand Down Expand Up @@ -273,7 +275,8 @@ H5T__conv_i_i(const H5T_t *src, const H5T_t *dst, H5T_cdata_t *cdata, const H5T_
}
else if (first >= dst->shared->u.atomic.prec) {
/*overflow - source is positive*/
if (conv_ctx->u.conv.cb_struct.func) { /*If user's exception handler is present, use it*/
if (conv_ctx->u.conv.cb_struct
.func) { /*If user's exception handler is present, use it*/
/* Reverse source buffer order first */
H5T__reverse_order(src_rev, s, src);

Expand Down Expand Up @@ -311,7 +314,8 @@ H5T__conv_i_i(const H5T_t *src, const H5T_t *dst, H5T_cdata_t *cdata, const H5T_
*/
if (first + 1 >= dst->shared->u.atomic.prec) {
/*overflow*/
if (conv_ctx->u.conv.cb_struct.func) { /*If user's exception handler is present, use it*/
if (conv_ctx->u.conv.cb_struct
.func) { /*If user's exception handler is present, use it*/
/* Reverse source buffer order first */
H5T__reverse_order(src_rev, s, src);

Expand Down Expand Up @@ -364,7 +368,8 @@ H5T__conv_i_i(const H5T_t *src, const H5T_t *dst, H5T_cdata_t *cdata, const H5T_

if (sfz >= 0 && fz + 1 >= dst->shared->u.atomic.prec) {
/*overflow*/
if (conv_ctx->u.conv.cb_struct.func) { /*If user's exception handler is present, use it*/
if (conv_ctx->u.conv.cb_struct
.func) { /*If user's exception handler is present, use it*/
/* Reverse source buffer order first */
H5T__reverse_order(src_rev, s, src);

Expand Down Expand Up @@ -412,7 +417,8 @@ H5T__conv_i_i(const H5T_t *src, const H5T_t *dst, H5T_cdata_t *cdata, const H5T_
*/
if (first + 1 >= dst->shared->u.atomic.prec) {
/*overflow*/
if (conv_ctx->u.conv.cb_struct.func) { /*If user's exception handler is present, use it*/
if (conv_ctx->u.conv.cb_struct
.func) { /*If user's exception handler is present, use it*/
/* Reverse source buffer order first */
H5T__reverse_order(src_rev, s, src);

Expand Down Expand Up @@ -793,7 +799,7 @@ H5T__conv_i_f_loop(const H5T_t *src_p, const H5T_t *dst_p, const H5T_conv_ctx_t
/* Check if the exponent is too big */
expo_max = (hsize_t)(pow(2.0, (double)dst_atomic.u.f.esize) - 1);

if (expo > expo_max) { /* overflows */
if (expo > expo_max) { /* overflows */
if (conv_ctx->u.conv.cb_struct.func) { /* user's exception handler */
/* Reverse back source order */
H5T__reverse_order(src_rev, s, src_p);
Expand Down
Loading

0 comments on commit e616ecc

Please sign in to comment.