summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgithub-actions <41898282+github-actions[bot]@users.noreply.github.com>2022-04-20 21:12:41 (GMT)
committergithub-actions <41898282+github-actions[bot]@users.noreply.github.com>2022-04-20 21:12:41 (GMT)
commit81d197c1ddcdf295f01388a04c131305433ba846 (patch)
treecdec2d04a1cb851a9f62cf206e8e9cb2919aec2e
parent1a6d20b229ad884776155615f03e1cc6050708bb (diff)
downloadhdf5-feature/h5detect.zip
hdf5-feature/h5detect.tar.gz
hdf5-feature/h5detect.tar.bz2
Committing clang-format changesfeature/h5detect
-rw-r--r--src/H5Tnative.c21
-rw-r--r--src/H5detect.c2
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, "\