diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2023-08-25 18:24:42 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-25 18:24:42 (GMT) |
commit | 3dd60d914e762c6cf7d99646bc516015229176cd (patch) | |
tree | 0e3fc69fe0a510a3c379a4013f8e0af405e3164c /.clang-format | |
parent | 6e0e53039a5633707a95065e184c0312274bf823 (diff) | |
download | hdf5-3dd60d914e762c6cf7d99646bc516015229176cd.zip hdf5-3dd60d914e762c6cf7d99646bc516015229176cd.tar.gz hdf5-3dd60d914e762c6cf7d99646bc516015229176cd.tar.bz2 |
Put H5T_CONV_ab macros in do..while loops (#3432)
Ever since a recent round of macro cleanup, bin/trace and clang-format
have been bickering over what H5Tconv.c should look like and neither
produces readable code.
This change puts the top-level H5T_CONV_ab macros in do..while loops,
adds appropriate semicolons, and adds the missing H5_CLANG_DIAG_ON|OFF
and H5_GCC_CLANG_DIAG_ON|OFF macros to the list of statement macros
clang-format recognizes. H5Tconv.c is now readable and both bin/trace
and clang-format are happy.
Diffstat (limited to '.clang-format')
-rw-r--r-- | .clang-format | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format index 0d59087..0b62255 100644 --- a/.clang-format +++ b/.clang-format @@ -83,6 +83,10 @@ StatementMacros: - H5_END_TAG - H5_GCC_DIAG_OFF - H5_GCC_DIAG_ON + - H5_CLANG_DIAG_OFF + - H5_CLANG_DIAG_ON + - H5_GCC_CLANG_DIAG_OFF + - H5_GCC_CLANG_DIAG_ON - H5_LEAVE - HGOTO_DONE - HMPI_DONE_ERROR |