[TargetVersion] Only enable on RISC-V and AArch64 (#115991)
[llvm-project.git] / clang-tools-extra / clang-tidy / performance / CMakeLists.txt
blobc6e547c5089fb0e43d185a933d2d1bca3cbb74c5
1 set(LLVM_LINK_COMPONENTS
2   FrontendOpenMP
3   Support
4   )
6 add_clang_library(clangTidyPerformanceModule STATIC
7   AvoidEndlCheck.cpp
8   EnumSizeCheck.cpp
9   FasterStringFindCheck.cpp
10   ForRangeCopyCheck.cpp
11   ImplicitConversionInLoopCheck.cpp
12   InefficientAlgorithmCheck.cpp
13   InefficientStringConcatenationCheck.cpp
14   InefficientVectorOperationCheck.cpp
15   MoveConstArgCheck.cpp
16   MoveConstructorInitCheck.cpp
17   NoAutomaticMoveCheck.cpp
18   NoIntToPtrCheck.cpp
19   NoexceptDestructorCheck.cpp
20   NoexceptFunctionBaseCheck.cpp
21   NoexceptMoveConstructorCheck.cpp
22   NoexceptSwapCheck.cpp
23   PerformanceTidyModule.cpp
24   TriviallyDestructibleCheck.cpp
25   TypePromotionInMathFnCheck.cpp
26   UnnecessaryCopyInitialization.cpp
27   UnnecessaryValueParamCheck.cpp
29   LINK_LIBS
30   clangTidy
31   clangTidyUtils
33   DEPENDS
34   omp_gen
35   ClangDriverOptions
36   )
38 clang_target_link_libraries(clangTidyPerformanceModule
39   PRIVATE
40   clangAST
41   clangASTMatchers
42   clangAnalysis
43   clangBasic
44   clangLex
45   )