2020-04-08 00:26:40 +08:00
|
|
|
set(LLVM_LINK_COMPONENTS
|
|
|
|
FrontendOpenMP
|
|
|
|
Support
|
|
|
|
)
|
2017-10-26 16:23:20 +08:00
|
|
|
|
|
|
|
add_clang_library(clangTidyObjCModule
|
2017-12-01 03:05:08 +08:00
|
|
|
AvoidNSErrorInitCheck.cpp
|
2020-02-08 07:08:17 +08:00
|
|
|
DeallocInCategoryCheck.cpp
|
2017-10-27 15:41:36 +08:00
|
|
|
ForbiddenSubclassingCheck.cpp
|
2019-09-21 09:22:22 +08:00
|
|
|
MissingHashCheck.cpp
|
[clang-tidy] Add check to find calls to NSInvocation methods under ARC that don't have proper object argument lifetimes.
Summary: This check is similar to an ARC Migration check that warned about this incorrect usage under ARC, but most projects are no longer undergoing migration from pre-ARC code. The documentation for NSInvocation is not explicit about these requirements and incorrect usage has been found in many of our projects.
Reviewers: stephanemoore, benhamilton, dmaclach, alexfh, aaron.ballman, hokein, njames93
Reviewed By: stephanemoore, benhamilton, aaron.ballman
Subscribers: xazax.hun, Eugene.Zelenko, mgorny, cfe-commits
Tags: #clang, #clang-tools-extra
Differential Revision: https://reviews.llvm.org/D77571
2020-04-05 15:28:34 +08:00
|
|
|
NSInvocationArgumentLifetimeCheck.cpp
|
2017-10-26 16:23:20 +08:00
|
|
|
ObjCTidyModule.cpp
|
2017-11-14 07:54:31 +08:00
|
|
|
PropertyDeclarationCheck.cpp
|
2019-04-18 06:29:06 +08:00
|
|
|
SuperSelfCheck.cpp
|
2017-10-26 16:23:20 +08:00
|
|
|
|
|
|
|
LINK_LIBS
|
2020-06-17 02:43:55 +08:00
|
|
|
clangTidy
|
|
|
|
clangTidyUtils
|
|
|
|
)
|
|
|
|
|
|
|
|
clang_target_link_libraries(clangTidyObjCModule
|
|
|
|
PRIVATE
|
2017-10-26 16:23:20 +08:00
|
|
|
clangAST
|
|
|
|
clangASTMatchers
|
|
|
|
clangBasic
|
|
|
|
clangLex
|
|
|
|
)
|