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 Apr 24, 2022
1 parent d72eb55 commit 4903603
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 65 deletions.
8 changes: 4 additions & 4 deletions src/H5Dmpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -3467,9 +3467,9 @@ H5D__mpio_redistribute_shared_chunks(H5D_filtered_collective_io_info_t *chunk_li
static herr_t
H5D__mpio_redistribute_shared_chunks_int(H5D_filtered_collective_io_info_t *chunk_list,
size_t *num_chunks_assigned_map, hbool_t all_ranks_involved,
const H5D_io_info_t *io_info,
const H5D_chunk_map_t H5_ATTR_NDEBUG_UNUSED *fm,
int mpi_rank, int mpi_size)
const H5D_io_info_t * io_info,
const H5D_chunk_map_t H5_ATTR_NDEBUG_UNUSED *fm, int mpi_rank,
int mpi_size)
{
MPI_Datatype struct_type;
MPI_Datatype packed_type;
Expand Down Expand Up @@ -3799,7 +3799,7 @@ static herr_t
H5D__mpio_share_chunk_modification_data(H5D_filtered_collective_io_info_t *chunk_list,
size_t *chunk_list_num_entries, H5D_io_info_t *io_info,
const H5D_type_info_t *type_info, int mpi_rank,
int H5_ATTR_NDEBUG_UNUSED mpi_size,
int H5_ATTR_NDEBUG_UNUSED mpi_size,
H5D_filtered_collective_io_info_t **chunk_hash_table,
unsigned char ***chunk_msg_bufs, int *chunk_msg_bufs_len)
{
Expand Down
4 changes: 2 additions & 2 deletions src/H5FDsec2.c
Original file line number Diff line number Diff line change
Expand Up @@ -1075,8 +1075,8 @@ H5FD__sec2_delete(const char *filename, hid_t H5_ATTR_UNUSED fapl_id)
*-------------------------------------------------------------------------
*/
static herr_t
H5FD__sec2_ctl(H5FD_t H5_ATTR_UNUSED *_file, uint64_t op_code, uint64_t flags, const void H5_ATTR_UNUSED *input,
void H5_ATTR_UNUSED **output)
H5FD__sec2_ctl(H5FD_t H5_ATTR_UNUSED *_file, uint64_t op_code, uint64_t flags,
const void H5_ATTR_UNUSED *input, void H5_ATTR_UNUSED **output)
{
herr_t ret_value = SUCCEED;

Expand Down
4 changes: 2 additions & 2 deletions src/H5Tref.c
Original file line number Diff line number Diff line change
Expand Up @@ -638,8 +638,8 @@ H5T__ref_mem_read(H5VL_object_t H5_ATTR_UNUSED *src_file, const void *src_buf, s
*/
static herr_t
H5T__ref_mem_write(H5VL_object_t *src_file, const void *src_buf, size_t src_size, H5R_type_t src_type,
H5VL_object_t H5_ATTR_UNUSED *dst_file, void *dst_buf, size_t H5_ATTR_NDEBUG_UNUSED dst_size,
void H5_ATTR_UNUSED *bg_buf)
H5VL_object_t H5_ATTR_UNUSED *dst_file, void *dst_buf,
size_t H5_ATTR_NDEBUG_UNUSED dst_size, void H5_ATTR_UNUSED *bg_buf)
{
H5F_t * src_f = NULL;
hid_t file_id = H5I_INVALID_HID;
Expand Down
106 changes: 53 additions & 53 deletions test/vfd.c
Original file line number Diff line number Diff line change
Expand Up @@ -4099,7 +4099,7 @@ test_vector_io__setup_v(uint32_t count, H5FD_mem_t types[], haddr_t addrs[], siz
((char *)(read_bufs[i]))[sizes[i]] = '\0';

write_bufs[i] = (const void *)temp_buf;
temp_buf = NULL;
temp_buf = NULL;

fill_char++;
}
Expand Down Expand Up @@ -4243,7 +4243,7 @@ test_vector_io__setup_fixed_size_v(uint32_t count, H5FD_mem_t types[], haddr_t a
((char *)(read_bufs[i]))[sizes[k]] = '\0';

write_bufs[i] = (const void *)temp_buf;
temp_buf = NULL;
temp_buf = NULL;

fill_char++;
}
Expand Down Expand Up @@ -4552,58 +4552,58 @@ static herr_t
test_vector_io(const char *vfd_name)
{
char test_title[80];
hbool_t size_fixed_0 = FALSE; /* whether remaining entry */
hbool_t size_fixed_1 = FALSE; /* sizes in vector are fixed. */
hbool_t size_fixed_2 = FALSE; /* */
hbool_t type_fixed_0 = FALSE; /* whether remaining entry */
hbool_t type_fixed_1 = FALSE; /* types in vector are fixed. */
hbool_t type_fixed_2 = FALSE; /* */
hbool_t size_fixed_0 = FALSE; /* whether remaining entry */
hbool_t size_fixed_1 = FALSE; /* sizes in vector are fixed. */
hbool_t size_fixed_2 = FALSE; /* */
hbool_t type_fixed_0 = FALSE; /* whether remaining entry */
hbool_t type_fixed_1 = FALSE; /* types in vector are fixed. */
hbool_t type_fixed_2 = FALSE; /* */
hbool_t verbose = FALSE;
hid_t fapl_id = -1; /* file access property list ID */
haddr_t eoa; /* file eoa */
char filename[1024]; /* filename */
char * buf; /* tmp ptr to buf */
unsigned flags = 0; /* file open flags */
H5FD_t * lf; /* VFD struct ptr */
uint32_t i; /* index */
uint32_t j; /* index */
uint32_t count = VECTOR_LEN; /* length of vectors */
H5FD_mem_t types_0[VECTOR_LEN]; /* types vector */
H5FD_mem_t types_1[VECTOR_LEN]; /* types vector */
H5FD_mem_t types_2[VECTOR_LEN]; /* types vector */
H5FD_mem_t f_types_0[VECTOR_LEN]; /* fixed types vector */
H5FD_mem_t f_types_1[VECTOR_LEN]; /* fixed types vector */
H5FD_mem_t f_types_2[VECTOR_LEN]; /* fixed types vector */
H5FD_mem_t f_type_0 = H5FD_MEM_NTYPES; /* current type for f vector 0 */
H5FD_mem_t f_type_1 = H5FD_MEM_NTYPES; /* current type for f vector 1 */
H5FD_mem_t f_type_2 = H5FD_MEM_NTYPES; /* current type for f vector 2 */
haddr_t addrs_0[VECTOR_LEN]; /* addresses vector */
haddr_t addrs_1[VECTOR_LEN]; /* addresses vector */
haddr_t addrs_2[VECTOR_LEN]; /* addresses vector */
haddr_t f_addrs_0[VECTOR_LEN]; /* fixed addresses vector */
haddr_t f_addrs_1[VECTOR_LEN]; /* fixed addresses vector */
haddr_t f_addrs_2[VECTOR_LEN]; /* fixed addresses vector */
size_t sizes_0[VECTOR_LEN]; /* sizes vector */
size_t sizes_1[VECTOR_LEN]; /* sizes vector */
size_t sizes_2[VECTOR_LEN]; /* sizes vector */
size_t f_sizes_0[VECTOR_LEN]; /* fixed sizes vector */
size_t f_sizes_1[VECTOR_LEN]; /* fixed sizes vector */
size_t f_sizes_2[VECTOR_LEN]; /* fixed sizes vector */
size_t f_size_0 = 0; /* current size for f vector 0 */
size_t f_size_1 = 0; /* current size for f vector 1 */
size_t f_size_2 = 0; /* current size for f vector 2 */
const void *write_bufs_0[VECTOR_LEN]; /* write bufs vector */
const void *write_bufs_1[VECTOR_LEN]; /* write bufs vector */
const void *write_bufs_2[VECTOR_LEN]; /* write bufs vector */
const void *f_write_bufs_0[VECTOR_LEN]; /* fixed write bufs vector */
const void *f_write_bufs_1[VECTOR_LEN]; /* fixed write bufs vector */
const void *f_write_bufs_2[VECTOR_LEN]; /* fixed write bufs vector */
void * read_bufs_0[VECTOR_LEN]; /* read bufs vector */
void * read_bufs_1[VECTOR_LEN]; /* read bufs vector */
void * read_bufs_2[VECTOR_LEN]; /* read bufs vector */
void * f_read_bufs_0[VECTOR_LEN]; /* fixed read bufs vector */
void * f_read_bufs_1[VECTOR_LEN]; /* fixed read bufs vector */
void * f_read_bufs_2[VECTOR_LEN]; /* fixed read bufs vector */
hid_t fapl_id = -1; /* file access property list ID */
haddr_t eoa; /* file eoa */
char filename[1024]; /* filename */
char * buf; /* tmp ptr to buf */
unsigned flags = 0; /* file open flags */
H5FD_t * lf; /* VFD struct ptr */
uint32_t i; /* index */
uint32_t j; /* index */
uint32_t count = VECTOR_LEN; /* length of vectors */
H5FD_mem_t types_0[VECTOR_LEN]; /* types vector */
H5FD_mem_t types_1[VECTOR_LEN]; /* types vector */
H5FD_mem_t types_2[VECTOR_LEN]; /* types vector */
H5FD_mem_t f_types_0[VECTOR_LEN]; /* fixed types vector */
H5FD_mem_t f_types_1[VECTOR_LEN]; /* fixed types vector */
H5FD_mem_t f_types_2[VECTOR_LEN]; /* fixed types vector */
H5FD_mem_t f_type_0 = H5FD_MEM_NTYPES; /* current type for f vector 0 */
H5FD_mem_t f_type_1 = H5FD_MEM_NTYPES; /* current type for f vector 1 */
H5FD_mem_t f_type_2 = H5FD_MEM_NTYPES; /* current type for f vector 2 */
haddr_t addrs_0[VECTOR_LEN]; /* addresses vector */
haddr_t addrs_1[VECTOR_LEN]; /* addresses vector */
haddr_t addrs_2[VECTOR_LEN]; /* addresses vector */
haddr_t f_addrs_0[VECTOR_LEN]; /* fixed addresses vector */
haddr_t f_addrs_1[VECTOR_LEN]; /* fixed addresses vector */
haddr_t f_addrs_2[VECTOR_LEN]; /* fixed addresses vector */
size_t sizes_0[VECTOR_LEN]; /* sizes vector */
size_t sizes_1[VECTOR_LEN]; /* sizes vector */
size_t sizes_2[VECTOR_LEN]; /* sizes vector */
size_t f_sizes_0[VECTOR_LEN]; /* fixed sizes vector */
size_t f_sizes_1[VECTOR_LEN]; /* fixed sizes vector */
size_t f_sizes_2[VECTOR_LEN]; /* fixed sizes vector */
size_t f_size_0 = 0; /* current size for f vector 0 */
size_t f_size_1 = 0; /* current size for f vector 1 */
size_t f_size_2 = 0; /* current size for f vector 2 */
const void *write_bufs_0[VECTOR_LEN]; /* write bufs vector */
const void *write_bufs_1[VECTOR_LEN]; /* write bufs vector */
const void *write_bufs_2[VECTOR_LEN]; /* write bufs vector */
const void *f_write_bufs_0[VECTOR_LEN]; /* fixed write bufs vector */
const void *f_write_bufs_1[VECTOR_LEN]; /* fixed write bufs vector */
const void *f_write_bufs_2[VECTOR_LEN]; /* fixed write bufs vector */
void * read_bufs_0[VECTOR_LEN]; /* read bufs vector */
void * read_bufs_1[VECTOR_LEN]; /* read bufs vector */
void * read_bufs_2[VECTOR_LEN]; /* read bufs vector */
void * f_read_bufs_0[VECTOR_LEN]; /* fixed read bufs vector */
void * f_read_bufs_1[VECTOR_LEN]; /* fixed read bufs vector */
void * f_read_bufs_2[VECTOR_LEN]; /* fixed read bufs vector */

HDsnprintf(test_title, sizeof(test_title), "vector I/O with %s VFD", vfd_name);

Expand Down
5 changes: 2 additions & 3 deletions testpar/t_filters_parallel.c
Original file line number Diff line number Diff line change
Expand Up @@ -7815,10 +7815,9 @@ test_edge_chunks_overlap(const char *parent_group, H5Z_filter_t filter_id, hid_t
* edge chunk and writes to just a portion of the edge chunk.
*/
static void
test_edge_chunks_partial_write(const char H5_ATTR_PARALLEL_UNUSED *parent_group,
test_edge_chunks_partial_write(const char H5_ATTR_PARALLEL_UNUSED * parent_group,
H5Z_filter_t H5_ATTR_PARALLEL_UNUSED filter_id,
hid_t H5_ATTR_PARALLEL_UNUSED fapl_id,
hid_t H5_ATTR_PARALLEL_UNUSED dcpl_id,
hid_t H5_ATTR_PARALLEL_UNUSED fapl_id, hid_t H5_ATTR_PARALLEL_UNUSED dcpl_id,
hid_t H5_ATTR_PARALLEL_UNUSED dxpl_id)
{
/* TODO */
Expand Down
3 changes: 2 additions & 1 deletion testpar/t_vfd.c
Original file line number Diff line number Diff line change
Expand Up @@ -3017,7 +3017,8 @@ vector_write_test_4(int file_name_id, int mpi_rank, int mpi_size, H5FD_mpio_xfer
types[3] = H5FD_MEM_DRAW;
addrs[3] = addrs[2] + (haddr_t)(bytes_per_write);
sizes[3] = bytes_per_write;
bufs[3] = (const void *)(&(increasing_fi_buf[(mpi_rank * INTS_PER_RANK) + (3 * (INTS_PER_RANK / 4))]));
bufs[3] =
(const void *)(&(increasing_fi_buf[(mpi_rank * INTS_PER_RANK) + (3 * (INTS_PER_RANK / 4))]));

#if 0 /* JRM */
HDfprintf(stdout, "addrs = { %lld, %lld, %lld, %lld}\n",
Expand Down

0 comments on commit 4903603

Please sign in to comment.