benhamilton accepted this revision.
benhamilton added inline comments.
This revision is now accepted and ready to land.


================
Comment at: clang-tidy/objc/AvoidSpinlockCheck.cpp:31-32
+  diag(MatchedExpr->getLocStart(),
+       "deprecated usage of OSSpinlock; Please use other locks or dispatch "
+       "queue");
+}
----------------
Please fix hokein@'s comment — this should be a full sentence. Try this:

Use os_unfair_lock_lock() or dispatch queue APIs instead of the deprecated 
OSSpinLock().



================
Comment at: clang-tidy/objc/AvoidSpinlockCheck.h:19
+
+/// Finds usages of OSSpinlock in Objective-C files, which is deprecated due to
+/// potential livelock problems.
----------------
Remove "in Objective-C files".


================
Comment at: docs/ReleaseNotes.rst:63
+
+  Add new check to detect the use of OSSpinlock in Objective-C files.
+
----------------
Remove "in Objective-C files".



================
Comment at: docs/clang-tidy/checks/objc-avoid-spinlock.rst:6
+
+Finds usages of OSSpinlock in Objective-C files, which is deprecated due to 
potential
+livelock problems. 
----------------
Remove "in Objective-C files".



https://reviews.llvm.org/D40325



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to