summaryrefslogtreecommitdiffstats
path: root/src/H5A.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2020-12-16 18:15:06 (GMT)
committerGitHub <noreply@github.com>2020-12-16 18:15:06 (GMT)
commite4865ce716183485313238bcd6d5a82894ed5228 (patch)
treecca7d8e4014afcf8c8747b9f9e2a43b016af21c7 /src/H5A.c
parentfaf3a2fae0c0c7afdc184c61abc918a03e916f68 (diff)
downloadhdf5-e4865ce716183485313238bcd6d5a82894ed5228.zip
hdf5-e4865ce716183485313238bcd6d5a82894ed5228.tar.gz
hdf5-e4865ce716183485313238bcd6d5a82894ed5228.tar.bz2
Turns off clang formatter for H5ARGS_TRACE (#184)
The H5ARGS_TRACE macro was added during the async merge. These macros are updated by the bin/trace script, but conflict with the formatter so formatted code gets dirtied when autogen.sh is run. This change enshrines the bin/trace output as canonical and adds comments to turn clang formatting off for those lines containing H5ARGS_TRACE.
Diffstat (limited to 'src/H5A.c')
-rw-r--r--src/H5A.c58
1 files changed, 35 insertions, 23 deletions
diff --git a/src/H5A.c b/src/H5A.c
index f5c981f..0a71a33 100644
--- a/src/H5A.c
+++ b/src/H5A.c
@@ -274,9 +274,10 @@ H5Acreate_async(const char *app_file, const char *app_func, unsigned app_line, h
/* If a token was created, add the token to the event set */
if (NULL != token)
+ /* clang-format off */
if (H5ES_insert(es_id, vol_obj->connector, token,
- H5ARG_TRACE10(FUNC, "*s*sIui*siiiii", app_file, app_func, app_line, loc_id, attr_name,
- type_id, space_id, acpl_id, aapl_id, es_id)) < 0) {
+ H5ARG_TRACE10(FUNC, "*s*sIui*siiiii", app_file, app_func, app_line, loc_id, attr_name, type_id, space_id, acpl_id, aapl_id, es_id)) < 0) {
+ /* clang-format on */
if (H5I_dec_app_ref(ret_value) < 0)
HDONE_ERROR(H5E_ATTR, H5E_CANTDEC, H5I_INVALID_HID, "can't decrement count on attribute ID")
HGOTO_ERROR(H5E_ATTR, H5E_CANTINSERT, H5I_INVALID_HID, "can't insert token into event set")
@@ -422,10 +423,10 @@ H5Acreate_by_name_async(const char *app_file, const char *app_func, unsigned app
/* If a token was created, add the token to the event set */
if (NULL != token)
+ /* clang-format off */
if (H5ES_insert(es_id, vol_obj->connector, token,
- H5ARG_TRACE12(FUNC, "*s*sIui*s*siiiiii", app_file, app_func, app_line, loc_id,
- obj_name, attr_name, type_id, space_id, acpl_id, aapl_id, lapl_id,
- es_id)) < 0) {
+ H5ARG_TRACE12(FUNC, "*s*sIui*s*siiiiii", app_file, app_func, app_line, loc_id, obj_name, attr_name, type_id, space_id, acpl_id, aapl_id, lapl_id, es_id)) < 0) {
+ /* clang-format on */
if (H5I_dec_app_ref(ret_value) < 0)
HDONE_ERROR(H5E_ATTR, H5E_CANTDEC, H5I_INVALID_HID, "can't decrement count on attribute ID")
HGOTO_ERROR(H5E_ATTR, H5E_CANTINSERT, H5I_INVALID_HID, "can't insert token into event set")
@@ -585,9 +586,10 @@ H5Aopen_async(const char *app_file, const char *app_func, unsigned app_line, hid
/* If a token was created, add the token to the event set */
if (NULL != token)
+ /* clang-format off */
if (H5ES_insert(es_id, vol_obj->connector, token,
- H5ARG_TRACE7(FUNC, "*s*sIui*sii", app_file, app_func, app_line, loc_id, attr_name,
- aapl_id, es_id)) < 0) {
+ H5ARG_TRACE7(FUNC, "*s*sIui*sii", app_file, app_func, app_line, loc_id, attr_name, aapl_id, es_id)) < 0) {
+ /* clang-format on */
if (H5I_dec_app_ref(ret_value) < 0)
HDONE_ERROR(H5E_ATTR, H5E_CANTDEC, H5I_INVALID_HID, "can't decrement count on attribute ID")
HGOTO_ERROR(H5E_ATTR, H5E_CANTINSERT, H5I_INVALID_HID, "can't insert token into event set")
@@ -715,9 +717,10 @@ H5Aopen_by_name_async(const char *app_file, const char *app_func, unsigned app_l
/* If a token was created, add the token to the event set */
if (NULL != token)
+ /* clang-format off */
if (H5ES_insert(es_id, vol_obj->connector, token,
- H5ARG_TRACE9(FUNC, "*s*sIui*s*siii", app_file, app_func, app_line, loc_id, obj_name,
- attr_name, aapl_id, lapl_id, es_id)) < 0) {
+ H5ARG_TRACE9(FUNC, "*s*sIui*s*siii", app_file, app_func, app_line, loc_id, obj_name, attr_name, aapl_id, lapl_id, es_id)) < 0) {
+ /* clang-format on */
if (H5I_dec_app_ref(ret_value) < 0)
HDONE_ERROR(H5E_ATTR, H5E_CANTDEC, H5I_INVALID_HID, "can't decrement count on attribute ID")
HGOTO_ERROR(H5E_ATTR, H5E_CANTINSERT, H5I_INVALID_HID, "can't insert token into event set")
@@ -854,9 +857,10 @@ H5Aopen_by_idx_async(const char *app_file, const char *app_func, unsigned app_li
/* If a token was created, add the token to the event set */
if (NULL != token)
+ /* clang-format off */
if (H5ES_insert(es_id, vol_obj->connector, token,
- H5ARG_TRACE11(FUNC, "*s*sIui*sIiIohiii", app_file, app_func, app_line, loc_id,
- obj_name, idx_type, order, n, aapl_id, lapl_id, es_id)) < 0) {
+ H5ARG_TRACE11(FUNC, "*s*sIui*sIiIohiii", app_file, app_func, app_line, loc_id, obj_name, idx_type, order, n, aapl_id, lapl_id, es_id)) < 0) {
+ /* clang-format on */
if (H5I_dec_app_ref(ret_value) < 0)
HDONE_ERROR(H5E_ATTR, H5E_CANTDEC, H5I_INVALID_HID, "can't decrement count on attribute ID")
HGOTO_ERROR(H5E_ATTR, H5E_CANTINSERT, H5I_INVALID_HID, "can't insert token into event set")
@@ -965,9 +969,10 @@ H5Awrite_async(const char *app_file, const char *app_func, unsigned app_line, hi
/* If a token was created, add the token to the event set */
if (NULL != token)
+ /* clang-format off */
if (H5ES_insert(es_id, vol_obj->connector, token,
- H5ARG_TRACE7(FUNC, "*s*sIuii*xi", app_file, app_func, app_line, attr_id, dtype_id,
- buf, es_id)) < 0)
+ H5ARG_TRACE7(FUNC, "*s*sIuii*xi", app_file, app_func, app_line, attr_id, dtype_id, buf, es_id)) < 0)
+ /* clang-format on */
HGOTO_ERROR(H5E_ATTR, H5E_CANTINSERT, FAIL, "can't insert token into event set")
done:
@@ -1072,9 +1077,10 @@ H5Aread_async(const char *app_file, const char *app_func, unsigned app_line, hid
/* If a token was created, add the token to the event set */
if (NULL != token)
+ /* clang-format off */
if (H5ES_insert(es_id, vol_obj->connector, token,
- H5ARG_TRACE7(FUNC, "*s*sIuii*xi", app_file, app_func, app_line, attr_id, dtype_id,
- buf, es_id)) < 0)
+ H5ARG_TRACE7(FUNC, "*s*sIuii*xi", app_file, app_func, app_line, attr_id, dtype_id, buf, es_id)) < 0)
+ /* clang-format on */
HGOTO_ERROR(H5E_ATTR, H5E_CANTINSERT, FAIL, "can't insert token into event set")
done:
@@ -1649,9 +1655,10 @@ H5Arename_async(const char *app_file, const char *app_func, unsigned app_line, h
/* If a token was created, add the token to the event set */
if (NULL != token)
+ /* clang-format off */
if (H5ES_insert(es_id, vol_obj->connector, token,
- H5ARG_TRACE7(FUNC, "*s*sIui*s*si", app_file, app_func, app_line, loc_id, old_name,
- new_name, es_id)) < 0)
+ H5ARG_TRACE7(FUNC, "*s*sIui*s*si", app_file, app_func, app_line, loc_id, old_name, new_name, es_id)) < 0)
+ /* clang-format on */
HGOTO_ERROR(H5E_ATTR, H5E_CANTINSERT, FAIL, "can't insert token into event set")
done:
@@ -1768,9 +1775,10 @@ H5Arename_by_name_async(const char *app_file, const char *app_func, unsigned app
/* If a token was created, add the token to the event set */
if (NULL != token)
+ /* clang-format off */
if (H5ES_insert(es_id, vol_obj->connector, token,
- H5ARG_TRACE9(FUNC, "*s*sIui*s*s*sii", app_file, app_func, app_line, loc_id, obj_name,
- old_attr_name, new_attr_name, lapl_id, es_id)) < 0)
+ H5ARG_TRACE9(FUNC, "*s*sIui*s*s*sii", app_file, app_func, app_line, loc_id, obj_name, old_attr_name, new_attr_name, lapl_id, es_id)) < 0)
+ /* clang-format on */
HGOTO_ERROR(H5E_ATTR, H5E_CANTINSERT, FAIL, "can't insert token into event set")
done:
@@ -2200,8 +2208,10 @@ H5Aclose_async(const char *app_file, const char *app_func, unsigned app_line, hi
/* If a token was created, add the token to the event set */
if (NULL != token)
+ /* clang-format off */
if (H5ES_insert(es_id, vol_obj->connector, token,
H5ARG_TRACE5(FUNC, "*s*sIuii", app_file, app_func, app_line, attr_id, es_id)) < 0)
+ /* clang-format on */
HGOTO_ERROR(H5E_ATTR, H5E_CANTINSERT, FAIL, "can't insert token into event set")
done:
@@ -2349,9 +2359,10 @@ H5Aexists_async(const char *app_file, const char *app_func, unsigned app_line, h
/* If a token was created, add the token to the event set */
if (NULL != token)
+ /* clang-format off */
if (H5ES_insert(es_id, vol_obj->connector, token,
- H5ARG_TRACE7(FUNC, "*s*sIui*s*bi", app_file, app_func, app_line, obj_id, attr_name,
- attr_exists, es_id)) < 0)
+ H5ARG_TRACE7(FUNC, "*s*sIui*s*bi", app_file, app_func, app_line, obj_id, attr_name, attr_exists, es_id)) < 0)
+ /* clang-format on */
HGOTO_ERROR(H5E_ATTR, H5E_CANTINSERT, FAIL, "can't insert token into event set")
done:
@@ -2467,9 +2478,10 @@ H5Aexists_by_name_async(const char *app_file, const char *app_func, unsigned app
/* If a token was created, add the token to the event set */
if (NULL != token)
+ /* clang-format off */
if (H5ES_insert(es_id, vol_obj->connector, token,
- H5ARG_TRACE9(FUNC, "*s*sIui*s*s*bii", app_file, app_func, app_line, loc_id, obj_name,
- attr_name, attr_exists, lapl_id, es_id)) < 0)
+ H5ARG_TRACE9(FUNC, "*s*sIui*s*s*bii", app_file, app_func, app_line, loc_id, obj_name, attr_name, attr_exists, lapl_id, es_id)) < 0)
+ /* clang-format on */
HGOTO_ERROR(H5E_ATTR, H5E_CANTINSERT, FAIL, "can't insert token into event set")
done: