[clang-tools-extra] Prevent linking to duplicate .a libs and dylib
[lldb.git] / clang-tools-extra / clang-tidy / readability / CMakeLists.txt
1 set(LLVM_LINK_COMPONENTS
2   FrontendOpenMP
3   Support
4   )
5
6 add_clang_library(clangTidyReadabilityModule
7   AvoidConstParamsInDecls.cpp
8   BracesAroundStatementsCheck.cpp
9   ConstReturnTypeCheck.cpp
10   ContainerSizeEmptyCheck.cpp
11   ConvertMemberFunctionsToStatic.cpp
12   DeleteNullPointerCheck.cpp
13   DeletedDefaultCheck.cpp
14   ElseAfterReturnCheck.cpp
15   FunctionSizeCheck.cpp
16   IdentifierNamingCheck.cpp
17   ImplicitBoolConversionCheck.cpp
18   InconsistentDeclarationParameterNameCheck.cpp
19   IsolateDeclarationCheck.cpp
20   MagicNumbersCheck.cpp
21   MakeMemberFunctionConstCheck.cpp
22   MisleadingIndentationCheck.cpp
23   MisplacedArrayIndexCheck.cpp
24   NamedParameterCheck.cpp
25   NamespaceCommentCheck.cpp
26   NonConstParameterCheck.cpp
27   QualifiedAutoCheck.cpp
28   ReadabilityTidyModule.cpp
29   RedundantAccessSpecifiersCheck.cpp
30   RedundantControlFlowCheck.cpp
31   RedundantDeclarationCheck.cpp
32   RedundantFunctionPtrDereferenceCheck.cpp
33   RedundantMemberInitCheck.cpp
34   RedundantPreprocessorCheck.cpp
35   RedundantSmartptrGetCheck.cpp
36   RedundantStringCStrCheck.cpp
37   RedundantStringInitCheck.cpp
38   SimplifyBooleanExprCheck.cpp
39   SimplifySubscriptExprCheck.cpp
40   StaticAccessedThroughInstanceCheck.cpp
41   StaticDefinitionInAnonymousNamespaceCheck.cpp
42   StringCompareCheck.cpp
43   UniqueptrDeleteReleaseCheck.cpp
44   UppercaseLiteralSuffixCheck.cpp
45   UseAnyOfAllOfCheck.cpp
46
47   LINK_LIBS
48   clangTidy
49   clangTidyUtils
50   )
51
52 clang_target_link_libraries(clangTidyReadabilityModule
53   PRIVATE
54   clangAnalysis
55   clangAST
56   clangASTMatchers
57   clangBasic
58   clangLex
59   clangTooling
60   )