mirror of
https://github.com/HDFGroup/hdf5.git
synced 2026-09-25 04:09:44 +03:00
Update clang-format to 17 (#4931)
Also bump the clang-format GitHub actions to 17
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user