Skip to content

Commit

Permalink
Add NAMECHECK_ONLY macros to .clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
Dana Robinson committed Apr 7, 2024
1 parent f9ea713 commit 9ab3e17
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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
6 changes: 4 additions & 2 deletions src/H5TS.c
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,8 @@ 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 @@ -441,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 9ab3e17

Please sign in to comment.