From 81d197c1ddcdf295f01388a04c131305433ba846 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 20 Apr 2022 21:12:41 +0000 Subject: Committing clang-format changes --- src/H5Tnative.c | 21 ++++++++++----------- src/H5detect.c | 2 +- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/src/H5Tnative.c b/src/H5Tnative.c index 1fc49e4..114e0a3 100644 --- a/src/H5Tnative.c +++ b/src/H5Tnative.c @@ -941,8 +941,7 @@ H5T__cmp_offset(size_t *comp_size, size_t *offset, size_t elem_size, size_t nele FUNC_LEAVE_NOAPI(SUCCEED) } /* end H5T__cmp_offset() */ -#define TAG_ALIGNMENT(tag) \ - (offsetof(alignments_t, tag.x) - offsetof(alignments_t, tag)) +#define TAG_ALIGNMENT(tag) (offsetof(alignments_t, tag.x) - offsetof(alignments_t, tag)) /* clang-format off */ #define NATIVE_ENTRY_INITIALIZER(tag, type, precision, has_sign) { \ @@ -1126,23 +1125,23 @@ H5T__init_native_internal(void) uint_fast64_t x; } UINT_FAST64; struct { - char c; + char c; void *x; } pointer; struct { - char c; + char c; hvl_t x; } hvl; struct { - char c; + char c; hobj_ref_t x; } hobjref; struct { - char c; + char c; hdset_reg_ref_t x; } hdsetregref; struct { - char c; + char c; H5R_ref_t x; } ref; } alignments_t; @@ -1254,11 +1253,11 @@ H5T__init_native_internal(void) } } - H5T_POINTER_ALIGN_g = TAG_ALIGNMENT(pointer); - H5T_HVL_ALIGN_g = TAG_ALIGNMENT(hvl); - H5T_HOBJREF_ALIGN_g = TAG_ALIGNMENT(hobjref); + H5T_POINTER_ALIGN_g = TAG_ALIGNMENT(pointer); + H5T_HVL_ALIGN_g = TAG_ALIGNMENT(hvl); + H5T_HOBJREF_ALIGN_g = TAG_ALIGNMENT(hobjref); H5T_HDSETREGREF_ALIGN_g = TAG_ALIGNMENT(hdsetregref); - H5T_REF_ALIGN_g = TAG_ALIGNMENT(ref); + H5T_REF_ALIGN_g = TAG_ALIGNMENT(ref); return SUCCEED; } diff --git a/src/H5detect.c b/src/H5detect.c index 76ad921..cf92398 100644 --- a/src/H5detect.c +++ b/src/H5detect.c @@ -351,7 +351,7 @@ H5T__init_native(void)\n\ dt->shared->state = H5T_STATE_IMMUTABLE;\n\ dt->shared->type = H5T_FLOAT;\n\ dt->shared->size = %d;\n", - d[i].size); /*size */ + d[i].size); /*size */ if (byte_order == -1) fprintf(rawoutstream, "\ -- cgit v0.12