summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2022-07-29 13:36:40 (GMT)
committerGitHub <noreply@github.com>2022-07-29 13:36:40 (GMT)
commit40fc2cca16cd562954d3b724fa56badb3b9da72b (patch)
tree536b4bb51328af98ead7dfa1951f36b47f9b752a /examples
parentc63dfb0fd3345ecb33014612f94d3959f147be03 (diff)
downloadhdf5-40fc2cca16cd562954d3b724fa56badb3b9da72b.zip
hdf5-40fc2cca16cd562954d3b724fa56badb3b9da72b.tar.gz
hdf5-40fc2cca16cd562954d3b724fa56badb3b9da72b.tar.bz2
1.10 clang 13 format #1933 (#1940)
* clang 13 format #1933 * Correct workflow
Diffstat (limited to 'examples')
-rw-r--r--examples/h5_attribute.c4
-rw-r--r--examples/h5_dtransform.c2
-rw-r--r--examples/h5_elink_unix2win.c2
-rw-r--r--examples/h5_group.c2
-rw-r--r--examples/h5_vds-eiger.c4
-rw-r--r--examples/h5_vds-exc.c4
-rw-r--r--examples/h5_vds-exclim.c4
-rw-r--r--examples/h5_vds-percival-unlim-maxmin.c4
-rw-r--r--examples/h5_vds-percival-unlim.c4
-rw-r--r--examples/h5_vds-percival.c6
-rw-r--r--examples/h5_vds-simpleIO.c4
-rw-r--r--examples/h5_vds.c6
-rw-r--r--examples/ph5_filtered_writes.c2
-rw-r--r--examples/ph5_filtered_writes_no_sel.c2
14 files changed, 25 insertions, 25 deletions
diff --git a/examples/h5_attribute.c b/examples/h5_attribute.c
index 68653d4..d2d7af1 100644
--- a/examples/h5_attribute.c
+++ b/examples/h5_attribute.c
@@ -192,7 +192,7 @@ main(void)
ret = H5Oget_info2(dataset, &oinfo, H5O_INFO_ALL);
for (i = 0; i < (unsigned)oinfo.num_attrs; i++) {
attr = H5Aopen_by_idx(dataset, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, (hsize_t)i, H5P_DEFAULT,
- H5P_DEFAULT);
+ H5P_DEFAULT);
atype = H5Aget_type(attr);
type_class = H5Tget_class(atype);
if (type_class == H5T_STRING) {
@@ -232,7 +232,7 @@ attr_info(hid_t loc_id, const char *name, const H5A_info_t *ainfo, void *opdata)
herr_t ret;
int i;
size_t npoints; /* Number of elements in the array attribute. */
- float * float_array; /* Pointer to the array attribute. */
+ float *float_array; /* Pointer to the array attribute. */
/* avoid warnings */
(void)opdata;
diff --git a/examples/h5_dtransform.c b/examples/h5_dtransform.c
index a364ec1..576ad60 100644
--- a/examples/h5_dtransform.c
+++ b/examples/h5_dtransform.c
@@ -72,7 +72,7 @@ main(void)
hid_t dxpl_id_f_to_c, dxpl_id_c_to_f; /* data transform handles */
const char *f_to_c = "(5/9.0)*(x-32)";
const char *c_to_f = "(9/5.0)*x + 32";
- char * transform;
+ char *transform;
float windchillC[ROWS][COLS];
int i, j, transform_size;
diff --git a/examples/h5_elink_unix2win.c b/examples/h5_elink_unix2win.c
index 6eca266..11b0ee6 100644
--- a/examples/h5_elink_unix2win.c
+++ b/examples/h5_elink_unix2win.c
@@ -43,7 +43,7 @@ elink_unix2win_trav(const char *link_name, hid_t cur_group, const void *udata, s
hid_t fid;
const char *file_name;
const char *obj_name;
- char * new_fname = NULL; /* Buffer allocated to hold Unix file path */
+ char *new_fname = NULL; /* Buffer allocated to hold Unix file path */
ssize_t prefix_len; /* External link prefix length */
size_t fname_len;
size_t start_pos; /* Initial position in new_fname buffer */
diff --git a/examples/h5_group.c b/examples/h5_group.c
index 45b3330..99adc4e 100644
--- a/examples/h5_group.c
+++ b/examples/h5_group.c
@@ -82,7 +82,7 @@ main(void)
dims[1] = 20;
dataspace = H5Screate_simple(RANK, dims, NULL);
dataset = H5Dcreate2(file, "/Data/Float_Data", H5T_NATIVE_FLOAT, dataspace, H5P_DEFAULT, H5P_DEFAULT,
- H5P_DEFAULT);
+ H5P_DEFAULT);
/*
*Close the second dataset and file.
diff --git a/examples/h5_vds-eiger.c b/examples/h5_vds-eiger.c
index 281db3c..9608319 100644
--- a/examples/h5_vds-eiger.c
+++ b/examples/h5_vds-eiger.c
@@ -48,8 +48,8 @@ main(void)
H5D_layout_t layout; /* Storage layout */
size_t num_map; /* Number of mappings */
ssize_t len; /* Length of the string; also a return value */
- char * filename;
- char * dsetname;
+ char *filename;
+ char *dsetname;
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
diff --git a/examples/h5_vds-exc.c b/examples/h5_vds-exc.c
index 00b8c6b..e03ffd8 100644
--- a/examples/h5_vds-exc.c
+++ b/examples/h5_vds-exc.c
@@ -57,8 +57,8 @@ main(void)
H5D_layout_t layout; /* Storage layout */
size_t num_map; /* Number of mappings */
ssize_t len; /* Length of the string; also a return value */
- char * filename;
- char * dsetname;
+ char *filename;
+ char *dsetname;
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
diff --git a/examples/h5_vds-exclim.c b/examples/h5_vds-exclim.c
index c90941d..f7b3fdd 100644
--- a/examples/h5_vds-exclim.c
+++ b/examples/h5_vds-exclim.c
@@ -56,8 +56,8 @@ main(void)
H5D_layout_t layout; /* Storage layout */
size_t num_map; /* Number of mappings */
ssize_t len; /* Length of the string; also a return value */
- char * filename;
- char * dsetname;
+ char *filename;
+ char *dsetname;
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
diff --git a/examples/h5_vds-percival-unlim-maxmin.c b/examples/h5_vds-percival-unlim-maxmin.c
index f459c20..507f088 100644
--- a/examples/h5_vds-percival-unlim-maxmin.c
+++ b/examples/h5_vds-percival-unlim-maxmin.c
@@ -61,8 +61,8 @@ main(void)
H5D_layout_t layout; /* Storage layout */
size_t num_map; /* Number of mappings */
ssize_t len; /* Length of the string; also a return value */
- char * filename;
- char * dsetname;
+ char *filename;
+ char *dsetname;
int wdata[DIM0_1 * DIM1 * DIM2];
/*
diff --git a/examples/h5_vds-percival-unlim.c b/examples/h5_vds-percival-unlim.c
index a4c853d..badead3 100644
--- a/examples/h5_vds-percival-unlim.c
+++ b/examples/h5_vds-percival-unlim.c
@@ -58,8 +58,8 @@ main(void)
H5D_layout_t layout; /* Storage layout */
size_t num_map; /* Number of mappings */
ssize_t len; /* Length of the string; also a return value */
- char * filename;
- char * dsetname;
+ char *filename;
+ char *dsetname;
int wdata[DIM0_1 * DIM1 * DIM2];
int rdata[80][10][10];
int a_rdata[20][10][10];
diff --git a/examples/h5_vds-percival.c b/examples/h5_vds-percival.c
index 12397be..9507931 100644
--- a/examples/h5_vds-percival.c
+++ b/examples/h5_vds-percival.c
@@ -62,8 +62,8 @@ main(void)
H5D_layout_t layout; /* Storage layout */
size_t num_map; /* Number of mappings */
ssize_t len; /* Length of the string; also a return value */
- char * filename;
- char * dsetname;
+ char *filename;
+ char *dsetname;
int wdata[DIM0 * DIM1 * DIM2];
/*
@@ -84,7 +84,7 @@ main(void)
file = H5Fcreate(SRC_FILE[i], H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
src_space = H5Screate_simple(RANK, dims, NULL);
dset = H5Dcreate2(file, SRC_DATASET[i], H5T_NATIVE_INT, src_space, H5P_DEFAULT, H5P_DEFAULT,
- H5P_DEFAULT);
+ H5P_DEFAULT);
status = H5Dwrite(dset, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, wdata);
status = H5Sclose(src_space);
status = H5Dclose(dset);
diff --git a/examples/h5_vds-simpleIO.c b/examples/h5_vds-simpleIO.c
index 6472766..cb69645 100644
--- a/examples/h5_vds-simpleIO.c
+++ b/examples/h5_vds-simpleIO.c
@@ -50,8 +50,8 @@ main(void)
H5D_layout_t layout; /* Storage layout */
size_t num_map; /* Number of mappings */
ssize_t len; /* Length of the string; also a return value */
- char * filename;
- char * dsetname;
+ char *filename;
+ char *dsetname;
/*
* Initialize data.
*/
diff --git a/examples/h5_vds.c b/examples/h5_vds.c
index e036204..48c6d7d 100644
--- a/examples/h5_vds.c
+++ b/examples/h5_vds.c
@@ -65,10 +65,10 @@ main(void)
H5D_layout_t layout; /* Storage layout */
size_t num_map; /* Number of mappings */
ssize_t len; /* Length of the string; also a return value */
- char * filename;
- char * dsetname;
+ char *filename;
+ char *dsetname;
hsize_t nblocks;
- hsize_t * buf; /* Buffer to hold hyperslab coordinates */
+ hsize_t *buf; /* Buffer to hold hyperslab coordinates */
/*
* Create source files and datasets. This step is optional.
diff --git a/examples/ph5_filtered_writes.c b/examples/ph5_filtered_writes.c
index 7568c5b..14958a5 100644
--- a/examples/ph5_filtered_writes.c
+++ b/examples/ph5_filtered_writes.c
@@ -383,7 +383,7 @@ main(int argc, char **argv)
hid_t file_id = H5I_INVALID_HID;
hid_t fapl_id = H5I_INVALID_HID;
hid_t dxpl_id = H5I_INVALID_HID;
- char * par_prefix = NULL;
+ char *par_prefix = NULL;
char filename[PATH_MAX];
MPI_Init(&argc, &argv);
diff --git a/examples/ph5_filtered_writes_no_sel.c b/examples/ph5_filtered_writes_no_sel.c
index 1bc5564..083d8ad 100644
--- a/examples/ph5_filtered_writes_no_sel.c
+++ b/examples/ph5_filtered_writes_no_sel.c
@@ -265,7 +265,7 @@ main(int argc, char **argv)
hid_t file_id = H5I_INVALID_HID;
hid_t fapl_id = H5I_INVALID_HID;
hid_t dxpl_id = H5I_INVALID_HID;
- char * par_prefix = NULL;
+ char *par_prefix = NULL;
char filename[PATH_MAX];
MPI_Init(&argc, &argv);