Skip to content

Commit

Permalink
Committing clang-format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jun 1, 2023
1 parent b453171 commit 297b852
Show file tree
Hide file tree
Showing 18 changed files with 173 additions and 169 deletions.
2 changes: 1 addition & 1 deletion hl/src/H5LD.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ H5LD_construct_vector(char *fields, H5LD_memb_t *listv[] /*OUT*/, hid_t par_tid)
switch (*fields_ptr) {
case '\0': /* end of list */
if (gotmember) { /* getting something and end of "fields" */
*cur++ = '\0';
*cur++ = '\0';
memb->names[++j] = NULL;
} /* end if */
else /* getting nothing but end of list */
Expand Down
4 changes: 2 additions & 2 deletions src/H5Dchunk.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
(H5D_CHUNK_IDX_BTREE == (storage)->idx_type && H5D_COPS_BTREE == (storage)->ops) || \
(H5D_CHUNK_IDX_SINGLE == (storage)->idx_type && H5D_COPS_SINGLE == (storage)->ops) || \
(H5D_CHUNK_IDX_NONE == (storage)->idx_type && H5D_COPS_NONE == (storage)->ops)); \
} while(0)
} while (0)
/*
* Feature: If this constant is defined then every cache preemption and load
* causes a character to be printed on the standard error stream:
Expand Down Expand Up @@ -3825,7 +3825,7 @@ H5D__chunk_lookup(const H5D_t *dset, const hsize_t *scaled, H5D_chunk_ud_t *udat
udata->idx_hint = idx;
udata->chunk_block.offset = ent->chunk_block.offset;
udata->chunk_block.length = ent->chunk_block.length;
udata->chunk_idx = ent->chunk_idx;
udata->chunk_idx = ent->chunk_idx;
} /* end if */
else {
/* Invalidate idx_hint, to signal that the chunk is not in cache */
Expand Down
3 changes: 1 addition & 2 deletions src/H5FD.c
Original file line number Diff line number Diff line change
Expand Up @@ -931,8 +931,7 @@ H5FD_cmp(const H5FD_t *f1, const H5FD_t *f2)

FUNC_ENTER_NOAPI_NOERR /* return value is arbitrary */

if ((!f1 || !f1->cls) && (!f2 || !f2->cls))
HGOTO_DONE(0)
if ((!f1 || !f1->cls) && (!f2 || !f2->cls)) HGOTO_DONE(0)
if (!f1 || !f1->cls)
HGOTO_DONE(-1)
if (!f2 || !f2->cls)
Expand Down
94 changes: 47 additions & 47 deletions src/H5Fprivate.h

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions src/H5HFpkg.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,10 @@
/* Decode a "managed" heap ID */
#define H5HF_MAN_ID_DECODE(i, h, f, o, l) \
do { \
f = *(uint8_t *)i++; \
UINT64DECODE_VAR((i), (o), (h)->heap_off_size); \
UINT64DECODE_VAR((i), (l), (h)->heap_len_size); \
} while(0)
f = *(uint8_t *)i++; \
UINT64DECODE_VAR((i), (o), (h)->heap_off_size); \
UINT64DECODE_VAR((i), (l), (h)->heap_len_size); \
} while (0)

/* Free space section types for fractal heap */
/* (values stored in free space data structures in file) */
Expand Down
2 changes: 1 addition & 1 deletion src/H5Tconv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,7 @@ done:
_tmp = ARRAY[I]; \
ARRAY[I] = ARRAY[J]; \
ARRAY[J] = _tmp; \
} while(0)
} while (0)

/* Minimum size of variable-length conversion buffer */
#define H5T_VLEN_MIN_CONF_BUF_SIZE 4096
Expand Down
4 changes: 2 additions & 2 deletions src/H5VMprivate.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ typedef herr_t (*H5VM_opvv_func_t)(hsize_t dst_off, hsize_t src_off, size_t len,
H5MM_memcpy(DST, SRC, (N) * sizeof(*(DST))); \
else \
HDmemset(DST, 0, (N) * sizeof(*(DST))); \
} while(0)
} while (0)

#define H5VM_vector_zero(N, DST) HDmemset(DST, 0, (N) * sizeof(*(DST)))

Expand All @@ -60,7 +60,7 @@ typedef herr_t (*H5VM_opvv_func_t)(hsize_t dst_off, hsize_t src_off, size_t len,
HDmemmove(&(COORDS)[1], &(COORDS)[0], sizeof(TYPE) * (UNLIM_DIM)); \
(COORDS)[0] = _tmp; \
} /* end if */ \
} while(0)
} while (0)

/* Given a coordinate offset array (COORDS) of type TYPE, move the value at
* offset 0 to offset of the unlimied dimension (UNLIM_DIM), sliding any
Expand Down
Loading

0 comments on commit 297b852

Please sign in to comment.