From dd4c43f9a5df06931d49efa3bcbc725c9d218995 Mon Sep 17 00:00:00 2001 From: Allen Byrne Date: Wed, 2 Aug 2023 14:07:38 -0500 Subject: [PATCH] A couple of documentation items to fix --- .clang-format | 1 - doc/getting-started-with-hdf5-development.md | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.clang-format b/.clang-format index dfbfc2e53f9..0d5908799a8 100644 --- a/.clang-format +++ b/.clang-format @@ -85,7 +85,6 @@ StatementMacros: - H5_GCC_DIAG_ON - H5_LEAVE - HGOTO_DONE - - HGOTO_ERROR - HMPI_DONE_ERROR - HMPI_ERROR - HMPI_GOTO_ERROR diff --git a/doc/getting-started-with-hdf5-development.md b/doc/getting-started-with-hdf5-development.md index 04c42dc0c65..0365db797dc 100644 --- a/doc/getting-started-with-hdf5-development.md +++ b/doc/getting-started-with-hdf5-development.md @@ -270,7 +270,7 @@ H5X_do_stuff(/*parameters*/) HDassert(/*parameter check*/); if (H5X_other_call() < 0) - HGOTO_ERROR(H5E_MAJ, H5E_MIN, FAIL, "badness") + HGOTO_ERROR(H5E_MAJ, H5E_MIN, FAIL, "badness"); done: if (ret_value < 0) @@ -329,12 +329,12 @@ H5Xdo_api_stuff(/*parameters*/) H5TRACE3(/*stuff*/) if (/*parameter check*/) - HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "badness") + HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "badness"); /* VOL setup */ if (H5VL_call() < 0) - HGOTO_ERROR(H5E_FOO, H5E_BAR, FAIL, "badness") + HGOTO_ERROR(H5E_FOO, H5E_BAR, FAIL, "badness"); done: if (ret_value < 0) @@ -483,7 +483,7 @@ fail. The general format is this: ```c if (function_that_could_fail(foo, bar) < 0) - HGOTO_ERROR(H5E_, H5E_, , "tell me about badness") + HGOTO_ERROR(H5E_, H5E_, , "tell me about badness"); ``` `HGOTO_ERROR` is one of a set of macros defined in `H5Eprivate.h`. This macro