| // RUN: %check_clang_tidy %s darwin-avoid-spinlock %t |
| void OSSpinlockLock(OSSpinLock *l); |
| void OSSpinlockTry(OSSpinLock *l); |
| void OSSpinlockUnlock(OSSpinLock *l); |
| // CHECK-MESSAGES: :[[@LINE-1]]:5: warning: use os_unfair_lock_lock() or dispatch queue APIs instead of the deprecated OSSpinLock [darwin-avoid-spinlock] |
| // CHECK-MESSAGES: :[[@LINE-1]]:5: warning: use os_unfair_lock_lock() or dispatch queue APIs instead of the deprecated OSSpinLock [darwin-avoid-spinlock] |
| // CHECK-MESSAGES: :[[@LINE-1]]:5: warning: use os_unfair_lock_lock() or dispatch queue APIs instead of the deprecated OSSpinLock [darwin-avoid-spinlock] |