[TargetVersion] Only enable on RISC-V and AArch64 (#115991)
[llvm-project.git] / clang-tools-extra / clang-tidy / readability / CMakeLists.txt
blob8f303c51e1b0da2f356069376cbea74e9585eb09
1 set(LLVM_LINK_COMPONENTS
2   FrontendOpenMP
3   Support
4   )
6 add_clang_library(clangTidyReadabilityModule STATIC
7   AvoidConstParamsInDecls.cpp
8   AvoidNestedConditionalOperatorCheck.cpp
9   AvoidReturnWithVoidValueCheck.cpp
10   AvoidUnconditionalPreprocessorIfCheck.cpp
11   BracesAroundStatementsCheck.cpp
12   ConstReturnTypeCheck.cpp
13   ContainerContainsCheck.cpp
14   ContainerDataPointerCheck.cpp
15   ContainerSizeEmptyCheck.cpp
16   ConvertMemberFunctionsToStatic.cpp
17   DeleteNullPointerCheck.cpp
18   DuplicateIncludeCheck.cpp
19   ElseAfterReturnCheck.cpp
20   EnumInitialValueCheck.cpp
21   FunctionCognitiveComplexityCheck.cpp
22   FunctionSizeCheck.cpp
23   IdentifierLengthCheck.cpp
24   IdentifierNamingCheck.cpp
25   ImplicitBoolConversionCheck.cpp
26   RedundantInlineSpecifierCheck.cpp
27   InconsistentDeclarationParameterNameCheck.cpp
28   IsolateDeclarationCheck.cpp
29   MagicNumbersCheck.cpp
30   MakeMemberFunctionConstCheck.cpp
31   MathMissingParenthesesCheck.cpp
32   MisleadingIndentationCheck.cpp
33   MisplacedArrayIndexCheck.cpp
34   NamedParameterCheck.cpp
35   NamespaceCommentCheck.cpp
36   NonConstParameterCheck.cpp
37   OperatorsRepresentationCheck.cpp
38   QualifiedAutoCheck.cpp
39   ReadabilityTidyModule.cpp
40   RedundantAccessSpecifiersCheck.cpp
41   RedundantCastingCheck.cpp
42   RedundantControlFlowCheck.cpp
43   RedundantDeclarationCheck.cpp
44   RedundantFunctionPtrDereferenceCheck.cpp
45   RedundantMemberInitCheck.cpp
46   RedundantPreprocessorCheck.cpp
47   RedundantSmartptrGetCheck.cpp
48   RedundantStringCStrCheck.cpp
49   RedundantStringInitCheck.cpp
50   ReferenceToConstructedTemporaryCheck.cpp
51   SimplifyBooleanExprCheck.cpp
52   SimplifySubscriptExprCheck.cpp
53   StaticAccessedThroughInstanceCheck.cpp
54   StaticDefinitionInAnonymousNamespaceCheck.cpp
55   StringCompareCheck.cpp
56   SuspiciousCallArgumentCheck.cpp
57   UniqueptrDeleteReleaseCheck.cpp
58   UppercaseLiteralSuffixCheck.cpp
59   UseAnyOfAllOfCheck.cpp
60   UseStdMinMaxCheck.cpp
62   LINK_LIBS
63   clangTidy
64   clangTidyUtils
66   DEPENDS
67   omp_gen
68   ClangDriverOptions
69   )
71 clang_target_link_libraries(clangTidyReadabilityModule
72   PRIVATE
73   clangAnalysis
74   clangAST
75   clangASTMatchers
76   clangBasic
77   clangLex
78   clangTooling
79   )