Skip to content

Commit

Permalink
Add NAMECHECK_ONLY to macro list in .clang-format (HDFGroup#4343)
Browse files Browse the repository at this point in the history
This caused H5TS.c functions to be mis-formatted
  • Loading branch information
derobins authored and lrknox committed Apr 22, 2024
1 parent 2ecb75c commit 11b57ac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,14 @@ StatementMacros:
- CATCH
- END_MEMBERS
- FUNC_ENTER_API
- FUNC_ENTER_API_NAMECHECK_ONLY
- FUNC_ENTER_NOAPI
- FUNC_ENTER_NOAPI_NOERR
- FUNC_ENTER_NOAPI_NOINIT
- FUNC_ENTER_NOAPI_NOINIT_NOERR
- FUNC_ENTER_PACKAGE
- FUNC_LEAVE_API
- FUNC_LEAVE_API_NAMECHECK_ONLY
- FUNC_LEAVE_NOAPI
- FUNC_LEAVE_NOAPI_NOFS
- H5E_END_TRY
Expand Down
9 changes: 6 additions & 3 deletions src/H5TS.c
Original file line number Diff line number Diff line change
Expand Up @@ -414,10 +414,12 @@ H5TS__mutex_acquire(H5TS_mutex_t *mutex, unsigned int lock_count, bool *acquired
*--------------------------------------------------------------------------
*/
herr_t
H5TSmutex_acquire(unsigned int lock_count, bool *acquired){
H5TSmutex_acquire(unsigned int lock_count, bool *acquired)
{
FUNC_ENTER_API_NAMECHECK_ONLY

FUNC_LEAVE_API_NAMECHECK_ONLY(H5TS__mutex_acquire(&H5_g.init_lock, lock_count, acquired))}
FUNC_LEAVE_API_NAMECHECK_ONLY(H5TS__mutex_acquire(&H5_g.init_lock, lock_count, acquired))
}
/* end H5TSmutex_acquire() */

/*--------------------------------------------------------------------------
Expand All @@ -440,7 +442,8 @@ H5TSmutex_acquire(unsigned int lock_count, bool *acquired){
*
*--------------------------------------------------------------------------
*/
herr_t H5TS_mutex_lock(H5TS_mutex_t *mutex)
herr_t
H5TS_mutex_lock(H5TS_mutex_t *mutex)
{
herr_t ret_value = SUCCEED;

Expand Down

0 comments on commit 11b57ac

Please sign in to comment.