llvm/clang-tools-extra/clang-tidy/performance/CMakeLists.txt

set(LLVM_LINK_COMPONENTS
  FrontendOpenMP
  Support
  )

add_clang_library(clangTidyPerformanceModule
  AvoidEndlCheck.cpp
  EnumSizeCheck.cpp
  FasterStringFindCheck.cpp
  ForRangeCopyCheck.cpp
  ImplicitConversionInLoopCheck.cpp
  InefficientAlgorithmCheck.cpp
  InefficientStringConcatenationCheck.cpp
  InefficientVectorOperationCheck.cpp
  MoveConstArgCheck.cpp
  MoveConstructorInitCheck.cpp
  NoAutomaticMoveCheck.cpp
  NoIntToPtrCheck.cpp
  NoexceptDestructorCheck.cpp
  NoexceptFunctionBaseCheck.cpp
  NoexceptMoveConstructorCheck.cpp
  NoexceptSwapCheck.cpp
  PerformanceTidyModule.cpp
  TriviallyDestructibleCheck.cpp
  TypePromotionInMathFnCheck.cpp
  UnnecessaryCopyInitialization.cpp
  UnnecessaryValueParamCheck.cpp

  LINK_LIBS
  clangTidy
  clangTidyUtils

  DEPENDS
  omp_gen
  ClangDriverOptions
  )

clang_target_link_libraries(clangTidyPerformanceModule
  PRIVATE
  clangAST
  clangASTMatchers
  clangAnalysis
  clangBasic
  clangLex
  )