do not register matcher for objc-only checks when analyzing non-objc sources to save...
authorYan Zhang <ynzhang@google.com>
Wed, 7 Mar 2018 18:59:25 +0000 (18:59 +0000)
committerYan Zhang <ynzhang@google.com>
Wed, 7 Mar 2018 18:59:25 +0000 (18:59 +0000)
commitc7faee73ccf510f920082d309a9556eef1db80f0
tree6731cd26e2ae74b6438b8cdd6334cd7f65fd56bb
parentaac28f31b3903b907dcb50ea7e4e0bbe22c944bf
do not register matcher for objc-only checks when analyzing non-objc sources to save resources

Summary: I did not put lang opt check in AvoidSpinlockCheck since OSSpinLock is not objc specific. We won't want to skip it when analyzing some C++ target used by other ObjC sources.

Reviewers: hokein, benhamilton

Reviewed By: benhamilton

Subscribers: klimek, cfe-commits

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

llvm-svn: 326928
clang-tools-extra/clang-tidy/google/AvoidThrowingObjCExceptionCheck.cpp
clang-tools-extra/clang-tidy/objc/AvoidNSErrorInitCheck.cpp
clang-tools-extra/clang-tidy/objc/ForbiddenSubclassingCheck.cpp
clang-tools-extra/clang-tidy/objc/PropertyDeclarationCheck.cpp