[clang-tidy] Rename objc-avoid-spinlock check to darwin-avoid-spinlock
authorStephane Moore <mog@google.com>
Tue, 1 Oct 2019 21:18:40 +0000 (21:18 +0000)
committerStephane Moore <mog@google.com>
Tue, 1 Oct 2019 21:18:40 +0000 (21:18 +0000)
commite4acb971f1ea3f9b0c1e4c0fd1d69b1920c3a9fc
treefab4bc2c245b8d4ea310fe84678b76d0acc6f299
parent8830975cf6165ee48ce767344761ceaf4c4683d4
[clang-tidy] Rename objc-avoid-spinlock check to darwin-avoid-spinlock

Summary:
OSSpinLock* are Apple/Darwin functions, but were previously located with ObjC checks as those were most closely tied to Apple platforms before.

Now that there's a specific Darwin module, relocating the check there.

This change was prepared by running rename_check.py.

Contributed By: mwyman

Reviewers: stephanemoore, dmaclach

Reviewed By: stephanemoore

Subscribers: Eugene.Zelenko, mgorny, xazax.hun, cfe-commits

Tags: #clang-tools-extra, #clang, #llvm

Differential Revision: https://reviews.llvm.org/D68148

llvm-svn: 373392
clang-tools-extra/clang-tidy/darwin/AvoidSpinlockCheck.cpp [moved from clang-tools-extra/clang-tidy/objc/AvoidSpinlockCheck.cpp with 96% similarity]
clang-tools-extra/clang-tidy/darwin/AvoidSpinlockCheck.h [moved from clang-tools-extra/clang-tidy/objc/AvoidSpinlockCheck.h with 73% similarity]
clang-tools-extra/clang-tidy/darwin/CMakeLists.txt
clang-tools-extra/clang-tidy/darwin/DarwinTidyModule.cpp
clang-tools-extra/clang-tidy/objc/CMakeLists.txt
clang-tools-extra/clang-tidy/objc/ObjCTidyModule.cpp
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/darwin-avoid-spinlock.rst [moved from clang-tools-extra/docs/clang-tidy/checks/objc-avoid-spinlock.rst with 79% similarity]
clang-tools-extra/docs/clang-tidy/checks/list.rst
clang-tools-extra/test/clang-tidy/darwin-avoid-spinlock.m [moved from clang-tools-extra/test/clang-tidy/objc-avoid-spinlock.m with 78% similarity]