Update clang-format to 17 (#4931)

Also bump the clang-format GitHub actions to 17
This commit is contained in:
Dana Robinson
2024-10-04 19:49:35 -07:00
committed by GitHub
parent 33b28f8014
commit 54f8f12ed9
84 changed files with 565 additions and 575 deletions
+1 -1
View File
@@ -124,7 +124,7 @@ main(void)
#if H5_VERSION_GE(1, 12, 0) && !defined(H5_USE_110_API) && !defined(H5_USE_18_API) && !defined(H5_USE_16_API)
rdata = (H5R_ref_t *)malloc(dims[0] * sizeof(H5R_ref_t));
#else
rdata = (hobj_ref_t *)malloc(dims[0] * sizeof(hobj_ref_t));
rdata = (hobj_ref_t *)malloc(dims[0] * sizeof(hobj_ref_t));
#endif
/*
* Read the data.
+1 -1
View File
@@ -136,7 +136,7 @@ main(void)
#if H5_VERSION_GE(1, 12, 0) && !defined(H5_USE_110_API) && !defined(H5_USE_18_API) && !defined(H5_USE_16_API)
rdata = (H5R_ref_t *)malloc(dims[0] * sizeof(H5R_ref_t));
#else
rdata = (hobj_ref_t *)malloc(dims[0] * sizeof(hobj_ref_t));
rdata = (hobj_ref_t *)malloc(dims[0] * sizeof(hobj_ref_t));
#endif
/*
* Read the data.
+1 -1
View File
@@ -154,7 +154,7 @@ main(void)
#if H5_VERSION_GE(1, 12, 0) && !defined(H5_USE_110_API) && !defined(H5_USE_18_API) && !defined(H5_USE_16_API)
rdata = (H5R_ref_t *)malloc(dims[0] * sizeof(H5R_ref_t));
#else
rdata = (hdset_reg_ref_t *)malloc(dims[0] * sizeof(hdset_reg_ref_t));
rdata = (hdset_reg_ref_t *)malloc(dims[0] * sizeof(hdset_reg_ref_t));
#endif
status = H5Sclose(space);
+1 -1
View File
@@ -169,7 +169,7 @@ main(void)
#if H5_VERSION_GE(1, 12, 0) && !defined(H5_USE_110_API) && !defined(H5_USE_18_API) && !defined(H5_USE_16_API)
rdata = (H5R_ref_t *)malloc(dims[0] * sizeof(H5R_ref_t));
#else
rdata = (hdset_reg_ref_t *)malloc(dims[0] * sizeof(hdset_reg_ref_t));
rdata = (hdset_reg_ref_t *)malloc(dims[0] * sizeof(hdset_reg_ref_t));
#endif
status = H5Sclose(space);
+2 -2
View File
@@ -36,8 +36,8 @@ main(void)
herr_t status;
hsize_t chunk_dims[2] = {2, 5};
int data[3][3] = {{1, 1, 1}, /* data to write */
{1, 1, 1},
{1, 1, 1}};
{1, 1, 1},
{1, 1, 1}};
/* Variables used in extending and writing to the extended portion of dataset */
hsize_t size[2];
+2 -2
View File
@@ -33,8 +33,8 @@ main(void)
hsize_t maxdims[2] = {H5S_UNLIMITED, H5S_UNLIMITED};
hsize_t chunk_dims[2] = {2, 5};
int data[3][3] = {{1, 1, 1}, // data to write
{1, 1, 1},
{1, 1, 1}};
{1, 1, 1},
{1, 1, 1}};
// Variables used in extending and writing to the extended portion of dataset
+1 -1
View File
@@ -73,7 +73,7 @@ public class H5Ex_T_Commit {
String[] memberNames = {"Serial number", "Location", "Temperature (F)", "Pressure (inHg)"};
long[] memberFileTypes = {HDF5Constants.H5T_STD_I32BE, HDF5Constants.H5T_C_S1,
HDF5Constants.H5T_IEEE_F64BE, HDF5Constants.H5T_IEEE_F64BE};
HDF5Constants.H5T_IEEE_F64BE, HDF5Constants.H5T_IEEE_F64BE};
static int[] memberStorage = {INTEGERSIZE, MAXSTRINGSIZE, DOUBLESIZE, DOUBLESIZE};
// Data size is the storage size for the members not the object.
+1 -1
View File
@@ -43,7 +43,7 @@ public class H5Ex_T_Compound {
static String[] memberNames = {"Serial number", "Location", "Temperature (F)", "Pressure (inHg)"};
static long[] memberMemTypes = {HDF5Constants.H5T_NATIVE_INT, HDF5Constants.H5T_C_S1,
HDF5Constants.H5T_NATIVE_DOUBLE, HDF5Constants.H5T_NATIVE_DOUBLE};
HDF5Constants.H5T_NATIVE_DOUBLE, HDF5Constants.H5T_NATIVE_DOUBLE};
static long[] memberFileTypes = {HDF5Constants.H5T_STD_I32BE, HDF5Constants.H5T_C_S1,
HDF5Constants.H5T_IEEE_F64BE, HDF5Constants.H5T_IEEE_F64BE};
static int[] memberStorage = {INTEGERSIZE, MAXSTRINGSIZE, DOUBLESIZE, DOUBLESIZE};
@@ -44,7 +44,7 @@ public class H5Ex_T_CompoundAttribute {
static String[] memberNames = {"Serial number", "Location", "Temperature (F)", "Pressure (inHg)"};
static long[] memberMemTypes = {HDF5Constants.H5T_NATIVE_INT, HDF5Constants.H5T_C_S1,
HDF5Constants.H5T_NATIVE_DOUBLE, HDF5Constants.H5T_NATIVE_DOUBLE};
HDF5Constants.H5T_NATIVE_DOUBLE, HDF5Constants.H5T_NATIVE_DOUBLE};
static long[] memberFileTypes = {HDF5Constants.H5T_STD_I32BE, HDF5Constants.H5T_C_S1,
HDF5Constants.H5T_IEEE_F64BE, HDF5Constants.H5T_IEEE_F64BE};
static int[] memberStorage = {INTEGERSIZE, MAXSTRINGSIZE, DOUBLESIZE, DOUBLESIZE};