From 9d2cc567a170058757d888cc005c4102a89738fb Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 2 Aug 2023 17:52:19 +0000 Subject: [PATCH] Committing clang-format changes --- src/H5Epublic.h | 2 +- src/H5FDmulti.c | 6 +++--- test/API/tconfig.c | 7 +++++-- test/dtransform.c | 8 ++++---- test/tconfig.c | 7 +++++-- test/twriteorder.c | 2 +- test/use.h | 4 ++-- test/use_disable_mdc_flushes.c | 2 +- tools/src/h5perf/pio_engine.c | 4 ++-- tools/src/h5perf/sio_engine.c | 4 ++-- 10 files changed, 26 insertions(+), 20 deletions(-) diff --git a/src/H5Epublic.h b/src/H5Epublic.h index b6140cdcd3c..8db118b001c 100644 --- a/src/H5Epublic.h +++ b/src/H5Epublic.h @@ -152,7 +152,7 @@ H5_DLLVAR hid_t H5E_ERR_CLS_g; do { \ H5Epush2(H5E_DEFAULT, __FILE__, func, __LINE__, cls, maj, min, str); \ goto label; \ - } while(0) + } while (0) /** * Error stack traversal direction diff --git a/src/H5FDmulti.c b/src/H5FDmulti.c index 01ffa2e25b9..9f8a77c9404 100644 --- a/src/H5FDmulti.c +++ b/src/H5FDmulti.c @@ -1144,9 +1144,9 @@ H5FD_multi_open(const char *name, unsigned flags, hid_t fapl_id, haddr_t maxaddr if (H5Pclose(close_fapl) < 0) H5Epush_goto(func, H5E_ERR_CLS, H5E_FILE, H5E_CANTCLOSEOBJ, "can't close property list", error); - /* Compute derived properties and open member files */ - if (compute_next(file) < 0) - H5Epush_goto(func, H5E_ERR_CLS, H5E_INTERNAL, H5E_BADVALUE, "compute_next() failed", error); + /* Compute derived properties and open member files */ + if (compute_next(file) < 0) + H5Epush_goto(func, H5E_ERR_CLS, H5E_INTERNAL, H5E_BADVALUE, "compute_next() failed", error); if (open_members(file) < 0) H5Epush_goto(func, H5E_ERR_CLS, H5E_INTERNAL, H5E_BADVALUE, "open_members() failed", error); diff --git a/test/API/tconfig.c b/test/API/tconfig.c index 1e91b542f2e..3d495246239 100644 --- a/test/API/tconfig.c +++ b/test/API/tconfig.c @@ -30,10 +30,13 @@ vrfy_macrosize(ctype, ctype_macro, #ctype_macro); \ /* check unsigned type size */ \ vrfy_macrosize(uctype, ctype_macro, #ctype_macro); \ - } while(0) + } while (0) /* verify C type sizes: verify the sizeof type with the macro size. */ -#define vrfy_ctype(type, macro) do {vrfy_macrosize(type, macro, #macro);} while(0) +#define vrfy_ctype(type, macro) \ + do { \ + vrfy_macrosize(type, macro, #macro); \ + } while (0) /* verify if the sizeof(type) matches size defined in macro. */ /* Needs this extra step so that we can print the macro name. */ diff --git a/test/dtransform.c b/test/dtransform.c index ced6c5aca8b..6892a7ccfe5 100644 --- a/test/dtransform.c +++ b/test/dtransform.c @@ -85,7 +85,7 @@ const int transformData[ROWS][COLS] = {{36, 31, 25, 19, 13, 7, 1, 5, 11, 16, 22, } \ } \ PASSED(); \ - } while(0) + } while (0) #define COMPARE(TYPE, VAR1, VAR2, TOL) \ do { \ @@ -101,7 +101,7 @@ const int transformData[ROWS][COLS] = {{36, 31, 25, 19, 13, 7, 1, 5, 11, 16, 22, } \ } \ PASSED(); \ - } while(0) + } while (0) #define COMPARE_INT(VAR1, VAR2) \ do { \ @@ -115,7 +115,7 @@ const int transformData[ROWS][COLS] = {{36, 31, 25, 19, 13, 7, 1, 5, 11, 16, 22, goto error; \ } \ } \ - } while(0) + } while (0) #define TEST_TYPE_CONTIG(XFORM, TYPE, HDF_TYPE, TEST_STR, COMPARE_DATA, SIGNED) \ do { \ @@ -211,7 +211,7 @@ const int transformData[ROWS][COLS] = {{36, 31, 25, 19, 13, 7, 1, 5, 11, 16, 22, TEST_ERROR; \ \ free(array); \ - } while(0) + } while (0) #define TEST_TYPE_CHUNK(XFORM, TYPE, HDF_TYPE, TEST_STR, COMPARE_DATA, SIGNED) \ do { \ diff --git a/test/tconfig.c b/test/tconfig.c index 5a498e74609..25e9ad50efe 100644 --- a/test/tconfig.c +++ b/test/tconfig.c @@ -30,10 +30,13 @@ vrfy_macrosize(ctype, ctype_macro, #ctype_macro); \ /* check unsigned type size */ \ vrfy_macrosize(uctype, ctype_macro, #ctype_macro); \ - } while(0) + } while (0) /* verify C type sizes: verify the sizeof type with the macro size. */ -#define vrfy_ctype(type, macro) do {vrfy_macrosize(type, macro, #macro);} while(0) +#define vrfy_ctype(type, macro) \ + do { \ + vrfy_macrosize(type, macro, #macro); \ + } while (0) /* verify if the sizeof(type) matches size defined in macro. */ /* Needs this extra step so that we can print the macro name. */ diff --git a/test/twriteorder.c b/test/twriteorder.c index 7d1358098b5..b5ae2ea6c12 100644 --- a/test/twriteorder.c +++ b/test/twriteorder.c @@ -74,7 +74,7 @@ do { \ ret_value = val; \ goto done; \ - } while(0) + } while (0) /* type declarations */ typedef enum part_t { diff --git a/test/use.h b/test/use.h index ef82711a8b4..4317ab1ca4f 100644 --- a/test/use.h +++ b/test/use.h @@ -20,11 +20,11 @@ do { \ ret_value = val; \ goto done; \ - } while(0) + } while (0) #define Hgoto_done \ do { \ goto done; \ - } while(0) + } while (0) #define Chunksize_DFT 256 /* chunksize default */ #define ErrorReportMax 10 /* max number of errors reported */ /* these two definitions must match each other */ diff --git a/test/use_disable_mdc_flushes.c b/test/use_disable_mdc_flushes.c index 5ea23f16424..49dfa96fdcd 100644 --- a/test/use_disable_mdc_flushes.c +++ b/test/use_disable_mdc_flushes.c @@ -38,7 +38,7 @@ static const char *progname_g = "use_disable_mdc_flushes"; /* program name */ do { \ ret_value = val; \ goto done; \ - } while(0) + } while (0) static char *filename_g; static hsize_t nplanes_g; diff --git a/tools/src/h5perf/pio_engine.c b/tools/src/h5perf/pio_engine.c index ccba1654f1c..8830c8263f5 100644 --- a/tools/src/h5perf/pio_engine.c +++ b/tools/src/h5perf/pio_engine.c @@ -55,12 +55,12 @@ do { \ ret_code = errcode; \ goto done; \ - } while(0) + } while (0) #define ERRMSG(mesg) \ do { \ fprintf(stderr, "Proc %d: ", pio_mpi_rank_g); \ fprintf(stderr, "*** Assertion failed (%s) at line %4d in %s\n", mesg, (int)__LINE__, __FILE__); \ - } while(0) + } while (0) /* verify: if val is false (0), print mesg. */ #define VRFY(val, mesg) \ diff --git a/tools/src/h5perf/sio_engine.c b/tools/src/h5perf/sio_engine.c index 8fe79d0b88b..1f73a62f71d 100644 --- a/tools/src/h5perf/sio_engine.c +++ b/tools/src/h5perf/sio_engine.c @@ -37,11 +37,11 @@ do { \ ret_code = errcode; \ goto done; \ - } while(0) + } while (0) #define ERRMSG(mesg) \ do { \ fprintf(stderr, "*** Assertion failed (%s) at line %4d in %s\n", mesg, (int)__LINE__, __FILE__); \ - } while(0) + } while (0) /* verify: if val is false (0), print mesg. */ #define VRFY(val, mesg) \