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];