summaryrefslogtreecommitdiffstats
path: root/test/cache_api.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@lbl.gov>2021-03-17 15:25:39 (GMT)
committerGitHub <noreply@github.com>2021-03-17 15:25:39 (GMT)
commitc6e4e535469beaa3418b34863d455c8f17ade3f5 (patch)
tree11c5cf08959881ee6cff2df81b1d9f873ddd3dcf /test/cache_api.c
parentf6d919a2ab0034a1ee76ca2d5f59f4d8114c4952 (diff)
downloadhdf5-c6e4e535469beaa3418b34863d455c8f17ade3f5.zip
hdf5-c6e4e535469beaa3418b34863d455c8f17ade3f5.tar.gz
hdf5-c6e4e535469beaa3418b34863d455c8f17ade3f5.tar.bz2
Update clang config (#473)
* Update clang config to put H5E_BEGIN_TRY / H5E_END_TRY on separate lines, empty C++ methods on separate lines, understand that ALL_MEMBERS / UNIQUE_MEMBERS are foreach macros, and properly skip the 'config' directory in the find command without emiting a warning * Committing clang-format changes Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'test/cache_api.c')
-rw-r--r--test/cache_api.c75
1 files changed, 60 insertions, 15 deletions
diff --git a/test/cache_api.c b/test/cache_api.c
index c7c109c..75e1b9d 100644
--- a/test/cache_api.c
+++ b/test/cache_api.c
@@ -1699,7 +1699,10 @@ check_fapl_mdc_api_errs(void)
scratch.version = H5C__CURR_AUTO_SIZE_CTL_VER;
if (pass) {
- H5E_BEGIN_TRY { result = H5Pget_mdc_config((hid_t)-1, &scratch); }
+ H5E_BEGIN_TRY
+ {
+ result = H5Pget_mdc_config((hid_t)-1, &scratch);
+ }
H5E_END_TRY;
if (result >= 0) {
@@ -1734,7 +1737,10 @@ check_fapl_mdc_api_errs(void)
if (pass) {
- H5E_BEGIN_TRY { result = H5Pget_mdc_config(fapl_id, NULL); }
+ H5E_BEGIN_TRY
+ {
+ result = H5Pget_mdc_config(fapl_id, NULL);
+ }
H5E_END_TRY;
if (result >= 0) {
@@ -1749,7 +1755,10 @@ check_fapl_mdc_api_errs(void)
scratch.version = -1; /* a convenient, invalid value */
if (pass) {
- H5E_BEGIN_TRY { result = H5Pget_mdc_config(fapl_id, &scratch); }
+ H5E_BEGIN_TRY
+ {
+ result = H5Pget_mdc_config(fapl_id, &scratch);
+ }
H5E_END_TRY;
if (result >= 0) {
@@ -1765,7 +1774,10 @@ check_fapl_mdc_api_errs(void)
scratch.version = H5C__CURR_AUTO_SIZE_CTL_VER;
if (pass) {
- H5E_BEGIN_TRY { result = H5Pset_mdc_config((hid_t)-1, &default_config); }
+ H5E_BEGIN_TRY
+ {
+ result = H5Pset_mdc_config((hid_t)-1, &default_config);
+ }
H5E_END_TRY;
if (result >= 0) {
@@ -1777,7 +1789,10 @@ check_fapl_mdc_api_errs(void)
if (pass) {
- H5E_BEGIN_TRY { result = H5Pset_mdc_config(fapl_id, NULL); }
+ H5E_BEGIN_TRY
+ {
+ result = H5Pset_mdc_config(fapl_id, NULL);
+ }
H5E_END_TRY;
if (result >= 0) {
@@ -1789,7 +1804,10 @@ check_fapl_mdc_api_errs(void)
i = 0;
while ((pass) && (i < NUM_INVALID_CONFIGS)) {
- H5E_BEGIN_TRY { result = H5Pset_mdc_config(fapl_id, &(invalid_configs[i])); }
+ H5E_BEGIN_TRY
+ {
+ result = H5Pset_mdc_config(fapl_id, &(invalid_configs[i]));
+ }
H5E_END_TRY;
if (result >= 0) {
@@ -1914,7 +1932,10 @@ check_file_mdc_api_errs(unsigned paged, hid_t fcpl_id)
HDfprintf(stdout, "%s: testing H5Fget_mdc_config() 1.\n", FUNC);
}
- H5E_BEGIN_TRY { result = H5Fget_mdc_config((hid_t)-1, &scratch); }
+ H5E_BEGIN_TRY
+ {
+ result = H5Fget_mdc_config((hid_t)-1, &scratch);
+ }
H5E_END_TRY;
if (result >= 0) {
@@ -1931,7 +1952,10 @@ check_file_mdc_api_errs(unsigned paged, hid_t fcpl_id)
HDfprintf(stdout, "%s: testing H5Fget_mdc_config() 2.\n", FUNC);
}
- H5E_BEGIN_TRY { result = H5Fget_mdc_config(file_id, NULL); }
+ H5E_BEGIN_TRY
+ {
+ result = H5Fget_mdc_config(file_id, NULL);
+ }
H5E_END_TRY;
if (result >= 0) {
@@ -1949,7 +1973,10 @@ check_file_mdc_api_errs(unsigned paged, hid_t fcpl_id)
HDfprintf(stdout, "%s: testing H5Fget_mdc_config() 3.\n", FUNC);
}
- H5E_BEGIN_TRY { result = H5Fget_mdc_config(file_id, &scratch); }
+ H5E_BEGIN_TRY
+ {
+ result = H5Fget_mdc_config(file_id, &scratch);
+ }
H5E_END_TRY;
if (result >= 0) {
@@ -1969,7 +1996,10 @@ check_file_mdc_api_errs(unsigned paged, hid_t fcpl_id)
HDfprintf(stdout, "%s: testing H5Fset_mdc_config() 1.\n", FUNC);
}
- H5E_BEGIN_TRY { result = H5Fset_mdc_config((hid_t)-1, &default_config); }
+ H5E_BEGIN_TRY
+ {
+ result = H5Fset_mdc_config((hid_t)-1, &default_config);
+ }
H5E_END_TRY;
if (result >= 0) {
@@ -1986,7 +2016,10 @@ check_file_mdc_api_errs(unsigned paged, hid_t fcpl_id)
HDfprintf(stdout, "%s: testing H5Fset_mdc_config() 2.\n", FUNC);
}
- H5E_BEGIN_TRY { result = H5Fset_mdc_config(file_id, NULL); }
+ H5E_BEGIN_TRY
+ {
+ result = H5Fset_mdc_config(file_id, NULL);
+ }
H5E_END_TRY;
if (result >= 0) {
@@ -2003,7 +2036,10 @@ check_file_mdc_api_errs(unsigned paged, hid_t fcpl_id)
HDfprintf(stdout, "%s: testing H5Fset_mdc_config() with invalid config %d.\n", FUNC, i);
}
- H5E_BEGIN_TRY { result = H5Fset_mdc_config(file_id, &(invalid_configs[i])); }
+ H5E_BEGIN_TRY
+ {
+ result = H5Fset_mdc_config(file_id, &(invalid_configs[i]));
+ }
H5E_END_TRY;
if (result >= 0) {
@@ -2028,7 +2064,10 @@ check_file_mdc_api_errs(unsigned paged, hid_t fcpl_id)
HDfprintf(stdout, "%s: testing H5Fget_mdc_hit_rate() 1.\n", FUNC);
}
- H5E_BEGIN_TRY { result = H5Fget_mdc_hit_rate((hid_t)-1, &hit_rate); }
+ H5E_BEGIN_TRY
+ {
+ result = H5Fget_mdc_hit_rate((hid_t)-1, &hit_rate);
+ }
H5E_END_TRY;
if (result >= 0) {
@@ -2045,7 +2084,10 @@ check_file_mdc_api_errs(unsigned paged, hid_t fcpl_id)
HDfprintf(stdout, "%s: testing H5Fget_mdc_hit_rate() 2.\n", FUNC);
}
- H5E_BEGIN_TRY { result = H5Fget_mdc_hit_rate(file_id, NULL); }
+ H5E_BEGIN_TRY
+ {
+ result = H5Fget_mdc_hit_rate(file_id, NULL);
+ }
H5E_END_TRY;
if (result >= 0) {
@@ -2063,7 +2105,10 @@ check_file_mdc_api_errs(unsigned paged, hid_t fcpl_id)
HDfprintf(stdout, "%s: testing H5Freset_mdc_hit_rate_stats().\n", FUNC);
}
- H5E_BEGIN_TRY { result = H5Freset_mdc_hit_rate_stats((hid_t)-1); }
+ H5E_BEGIN_TRY
+ {
+ result = H5Freset_mdc_hit_rate_stats((hid_t)-1);
+ }
H5E_END_TRY;
if (result >= 0) {