summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgithub-actions <41898282+github-actions[bot]@users.noreply.github.com>2021-08-18 21:09:46 (GMT)
committergithub-actions <41898282+github-actions[bot]@users.noreply.github.com>2021-08-18 21:09:46 (GMT)
commitee86255610d4db64921ab18cc21fc16c94859067 (patch)
treef46beed91d7f184d40d890a60ac1ecb45fbaa964
parent79652fa099615b96350e59ed6150497a7b697015 (diff)
downloadhdf5-ee86255610d4db64921ab18cc21fc16c94859067.zip
hdf5-ee86255610d4db64921ab18cc21fc16c94859067.tar.gz
hdf5-ee86255610d4db64921ab18cc21fc16c94859067.tar.bz2
Committing clang-format changes
-rw-r--r--test/vfd_swmr_gperf_writer.c24
1 files changed, 9 insertions, 15 deletions
diff --git a/test/vfd_swmr_gperf_writer.c b/test/vfd_swmr_gperf_writer.c
index 15f9522..a64af45 100644
--- a/test/vfd_swmr_gperf_writer.c
+++ b/test/vfd_swmr_gperf_writer.c
@@ -99,7 +99,7 @@ usage(const char *progname)
"-b: write data in big-endian byte order\n"
"-n ngroups: the number of groups\n"
"-N num_attrs: the number of attributes \n"
- "-V vlstr attrs: Use variable length string attribute in the performance test. \n"
+ "-V vlstr attrs: Use variable length string attribute in the performance test. \n"
"-l ng_levels: the number of level of nested groups. \n"
" If all the groups are under the root group, \n"
" this number should be 0.\n"
@@ -598,8 +598,6 @@ error:
return false;
}
-
-
/*-------------------------------------------------------------------------
* Function: add_vlstr_attrs
*
@@ -630,18 +628,16 @@ static bool
add_vlstr_attrs(state_t *s, hid_t g, unsigned int which, unsigned int num_attrs)
{
unsigned u;
- bool ret_value = true;
+ bool ret_value = true;
for (u = 0; u < num_attrs; u++) {
- ret_value = add_vlstr_attr(s, g, u+which);
- if(ret_value == false)
+ ret_value = add_vlstr_attr(s, g, u + which);
+ if (ret_value == false)
break;
}
return ret_value;
}
-
-
/*-------------------------------------------------------------------------
* Function: add_default_group_attr
*
@@ -680,13 +676,12 @@ add_default_group_attr(state_t *s, hid_t g, unsigned int which)
* the default number of attribute is 1.
*/
/* If the vl string attribute type is chosen. */
- if(s->vlstr_test == true)
+ if (s->vlstr_test == true)
return add_vlstr_attrs(s, g, which, s->num_attrs);
- else
+ else
return add_attr(s, g, which, s->num_attrs, aname_format, which);
}
-
/*-------------------------------------------------------------------------
* Function: del_one_attr
*
@@ -887,7 +882,7 @@ error:
*
* Purpose: Modify the value of an VL string attribute in a group.
*
- * Parameters:
+ * Parameters:
* hid_t g
* HDF5 object ID (in this file: means group ID)
*
@@ -2633,7 +2628,7 @@ main(int argc, char **argv)
TEST_ERROR;
}
- if(writer == false) {
+ if (writer == false) {
printf("Reader is skipped for the performance tests.\n");
return EXIT_SUCCESS;
}
@@ -2757,9 +2752,8 @@ main(int argc, char **argv)
fprintf(stdout, "group creation +5 attrs mean time = %lf\n", s.mean_time);
}
}
- else
+ else
printf("Reader is skipped for the performance tests.\n");
-
if (H5Pclose(fapl) < 0) {
printf("H5Pclose failed\n");