summaryrefslogtreecommitdiffstats
path: root/tools/test/h5dump/h5dumpgentest.c
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2022-07-26 21:45:46 (GMT)
committerGitHub <noreply@github.com>2022-07-26 21:45:46 (GMT)
commitae414872f50187e64cbd6cc8f076c22cf5df2d53 (patch)
treeb616f33f5daa89f213e7c64e04c63afde906e939 /tools/test/h5dump/h5dumpgentest.c
parent213eac2588369f75a11df6bb1788dde33c4b82e2 (diff)
downloadhdf5-ae414872f50187e64cbd6cc8f076c22cf5df2d53.zip
hdf5-ae414872f50187e64cbd6cc8f076c22cf5df2d53.tar.gz
hdf5-ae414872f50187e64cbd6cc8f076c22cf5df2d53.tar.bz2
Develop clang 13 format (#1933)
* Update format source to clang 13 * More format changes
Diffstat (limited to 'tools/test/h5dump/h5dumpgentest.c')
-rw-r--r--tools/test/h5dump/h5dumpgentest.c56
1 files changed, 28 insertions, 28 deletions
diff --git a/tools/test/h5dump/h5dumpgentest.c b/tools/test/h5dump/h5dumpgentest.c
index 1c495a1..30e0c46 100644
--- a/tools/test/h5dump/h5dumpgentest.c
+++ b/tools/test/h5dump/h5dumpgentest.c
@@ -457,10 +457,10 @@ gent_dataset(void)
{
hid_t fid, dataset, space;
hsize_t dims[2];
- int ** dset1 = NULL;
- int * dset1_data = NULL;
+ int **dset1 = NULL;
+ int *dset1_data = NULL;
double **dset2 = NULL;
- double * dset2_data = NULL;
+ double *dset2_data = NULL;
int i, j;
/* Set up data arrays */
@@ -1798,7 +1798,7 @@ gent_str(void)
} compound_t;
compound_t **comp1 = NULL;
- compound_t * comp1_data = NULL;
+ compound_t *comp1_data = NULL;
hsize_t mdims[2];
/* Set up data array */
@@ -2114,7 +2114,7 @@ gent_objref(void)
hobj_ref_t *wbuf, /* buffer to write to disk */
*rbuf, /* buffer read from disk */
*tbuf; /* temp. buffer read from disk */
- uint32_t * tu32; /* Temporary pointer to uint32 data */
+ uint32_t *tu32; /* Temporary pointer to uint32 data */
int i; /* counting variables */
const char *write_comment = "Foo!"; /* Comments for group */
uint64_t supports_comments = 0;
@@ -2352,9 +2352,9 @@ gent_attrreg(void)
hsize_t coord1[POINT1_NPOINTS][SPACE2_RANK]; /* Coordinates for point selection */
hdset_reg_ref_t *wbuf; /* buffer to write to disk */
hdset_reg_ref_t *rbuf; /* buffer read from disk */
- uint8_t * dwbuf; /* Buffer for writing numeric data to disk */
- uint8_t * drbuf; /* Buffer for reading numeric data from disk */
- uint8_t * tu8; /* Temporary pointer to uint8 data */
+ uint8_t *dwbuf; /* Buffer for writing numeric data to disk */
+ uint8_t *drbuf; /* Buffer for reading numeric data from disk */
+ uint8_t *tu8; /* Temporary pointer to uint8 data */
int i; /* counting variables */
/* Allocate write & read buffers */
@@ -2769,7 +2769,7 @@ static void
gent_vldatatypes2(void)
{
hvl_t wdata[SPACE1_DIM1]; /* Information to write */
- hvl_t * t1; /* Temporary pointer to VL information */
+ hvl_t *t1; /* Temporary pointer to VL information */
hid_t fid1; /* HDF5 File IDs */
hid_t dataset; /* Dataset ID */
hid_t sid1; /* Dataspace ID */
@@ -3047,7 +3047,7 @@ gent_vldatatypes5(void)
static void
gent_array1_big(void)
{
- int * wdata; /* Information to write */
+ int *wdata; /* Information to write */
hid_t fid1; /* HDF5 File IDs */
hid_t dataset; /* Dataset ID */
hid_t sid1; /* Dataspace ID */
@@ -3567,7 +3567,7 @@ gent_array8(void)
herr_t H5_ATTR_NDEBUG_UNUSED status = -1;
hsize_t sdims[] = {F64_DIM0};
hsize_t tdims[] = {F64_DIM1};
- int * wdata; /* Write buffer */
+ int *wdata; /* Write buffer */
unsigned int i;
/* Allocate data buffer */
@@ -3859,8 +3859,8 @@ gent_multi(void)
H5FD_mem_t mt, memb_map[H5FD_MEM_NTYPES];
hid_t memb_fapl[H5FD_MEM_NTYPES];
const char *memb_name[H5FD_MEM_NTYPES];
- char ** sv = NULL;
- char * sv_data = NULL;
+ char **sv = NULL;
+ char *sv_data = NULL;
haddr_t memb_addr[H5FD_MEM_NTYPES];
sv_data = (char *)HDcalloc(H5FD_MEM_NTYPES * 1024, sizeof(char));
@@ -3990,10 +3990,10 @@ gent_char(void)
"men are created equal. Now we are engaged in a great "
"civil war, testing whether that nation or any nation "
"so conceived and so dedicated can long endure.";
- hid_t fid1; /* HDF5 File IDs */
- hid_t dataset; /* Dataset ID */
- hid_t sid1; /* Dataspace ID */
- hsize_t dims1[1];
+ hid_t fid1; /* HDF5 File IDs */
+ hid_t dataset; /* Dataset ID */
+ hid_t sid1; /* Dataspace ID */
+ hsize_t dims1[1];
dims1[0] = HDstrlen(wdata);
@@ -6258,7 +6258,7 @@ gent_longlinks(void)
hid_t fid = (-1); /* File ID */
hid_t gid = (-1); /* Group ID */
hid_t H5_ATTR_NDEBUG_UNUSED gid2 = (-1); /* Datatype ID */
- char * objname = NULL; /* Name of object [Long] */
+ char *objname = NULL; /* Name of object [Long] */
size_t u; /* Local index variable */
/* Create files */
@@ -6480,7 +6480,7 @@ gent_bigdims(void)
hsize_t hs_size[1]; /* hyperslab dimensions */
size_t size;
char fillvalue = 0;
- char * buf = NULL;
+ char *buf = NULL;
hsize_t i;
char c;
size_t nelmts;
@@ -10015,15 +10015,15 @@ gent_intsattrs(void)
double arr[F66_XDIM][F66_YDIM8];
} * dsetdbl;
- uint8_t * asetu8 = NULL;
+ uint8_t *asetu8 = NULL;
uint16_t *asetu16 = NULL;
uint32_t *asetu32 = NULL;
uint64_t *asetu64 = NULL;
- int8_t * aset8 = NULL;
- int16_t * aset16 = NULL;
- int32_t * aset32 = NULL;
- int64_t * aset64 = NULL;
- double * asetdbl = NULL;
+ int8_t *aset8 = NULL;
+ int16_t *aset16 = NULL;
+ int32_t *aset32 = NULL;
+ int64_t *aset64 = NULL;
+ double *asetdbl = NULL;
uint8_t valu8bits;
uint16_t valu16bits;
@@ -10357,8 +10357,8 @@ gent_floatsattrs(void)
long double arr[F89_XDIM][F89_YDIM128];
} * dset128;
- float * aset32 = NULL;
- double * aset64 = NULL;
+ float *aset32 = NULL;
+ double *aset64 = NULL;
long double *aset128 = NULL;
float val32bits;
@@ -11189,7 +11189,7 @@ static size_t
H5Z_filter_dynlibud(unsigned int flags, size_t cd_nelmts, const unsigned int *cd_values, size_t nbytes,
size_t *buf_size, void **buf)
{
- char * int_ptr = (char *)*buf; /* Pointer to the data values */
+ char *int_ptr = (char *)*buf; /* Pointer to the data values */
size_t buf_left = *buf_size; /* Amount of data buffer left to process */
/* Check for the correct number of parameters */