[TargetVersion] Only enable on RISC-V and AArch64 (#115991)
[llvm-project.git] / clang-tools-extra / clang-tidy / bugprone / CMakeLists.txt
blobb0a2318acc05970cf7979e312412f2773c92420e
1 set(LLVM_LINK_COMPONENTS
2   support
3   FrontendOpenMP
4   )
6 add_clang_library(clangTidyBugproneModule STATIC
7   ArgumentCommentCheck.cpp
8   AssertSideEffectCheck.cpp
9   AssignmentInIfConditionCheck.cpp
10   BadSignalToKillThreadCheck.cpp
11   BitwisePointerCastCheck.cpp
12   BoolPointerImplicitConversionCheck.cpp
13   BranchCloneCheck.cpp
14   BugproneTidyModule.cpp
15   CastingThroughVoidCheck.cpp
16   ChainedComparisonCheck.cpp
17   ComparePointerToMemberVirtualFunctionCheck.cpp
18   CopyConstructorInitCheck.cpp
19   DanglingHandleCheck.cpp
20   DynamicStaticInitializersCheck.cpp
21   EasilySwappableParametersCheck.cpp
22   EmptyCatchCheck.cpp
23   ExceptionEscapeCheck.cpp
24   FoldInitTypeCheck.cpp
25   ForwardDeclarationNamespaceCheck.cpp
26   ForwardingReferenceOverloadCheck.cpp
27   ImplicitWideningOfMultiplicationResultCheck.cpp
28   InaccurateEraseCheck.cpp
29   IncorrectEnableIfCheck.cpp
30   ReturnConstRefFromParameterCheck.cpp
31   SuspiciousStringviewDataUsageCheck.cpp
32   SwitchMissingDefaultCaseCheck.cpp
33   IncDecInConditionsCheck.cpp
34   IncorrectRoundingsCheck.cpp
35   InfiniteLoopCheck.cpp
36   IntegerDivisionCheck.cpp
37   LambdaFunctionNameCheck.cpp
38   MacroParenthesesCheck.cpp
39   MacroRepeatedSideEffectsCheck.cpp
40   MisplacedOperatorInStrlenInAllocCheck.cpp
41   MisplacedPointerArithmeticInAllocCheck.cpp
42   MisplacedWideningCastCheck.cpp
43   MoveForwardingReferenceCheck.cpp
44   MultiLevelImplicitPointerConversionCheck.cpp
45   MultipleNewInOneExpressionCheck.cpp
46   MultipleStatementMacroCheck.cpp
47   NoEscapeCheck.cpp
48   NondeterministicPointerIterationOrderCheck.cpp
49   NonZeroEnumToBoolConversionCheck.cpp
50   NotNullTerminatedResultCheck.cpp
51   OptionalValueConversionCheck.cpp
52   ParentVirtualCallCheck.cpp
53   PointerArithmeticOnPolymorphicObjectCheck.cpp
54   PosixReturnCheck.cpp
55   RedundantBranchConditionCheck.cpp
56   ReservedIdentifierCheck.cpp
57   SharedPtrArrayMismatchCheck.cpp
58   SignalHandlerCheck.cpp
59   SignedCharMisuseCheck.cpp
60   SizeofContainerCheck.cpp
61   SizeofExpressionCheck.cpp
62   SmartPtrArrayMismatchCheck.cpp
63   SpuriouslyWakeUpFunctionsCheck.cpp
64   StandaloneEmptyCheck.cpp
65   StringConstructorCheck.cpp
66   StringIntegerAssignmentCheck.cpp
67   StringLiteralWithEmbeddedNulCheck.cpp
68   StringviewNullptrCheck.cpp
69   SuspiciousEnumUsageCheck.cpp
70   SuspiciousIncludeCheck.cpp
71   SuspiciousMemoryComparisonCheck.cpp
72   SuspiciousMemsetUsageCheck.cpp
73   SuspiciousMissingCommaCheck.cpp
74   SuspiciousReallocUsageCheck.cpp
75   SuspiciousSemicolonCheck.cpp
76   SuspiciousStringCompareCheck.cpp
77   SwappedArgumentsCheck.cpp
78   TaggedUnionMemberCountCheck.cpp
79   TerminatingContinueCheck.cpp
80   ThrowKeywordMissingCheck.cpp
81   TooSmallLoopVariableCheck.cpp
82   UncheckedOptionalAccessCheck.cpp
83   UndefinedMemoryManipulationCheck.cpp
84   UndelegatedConstructorCheck.cpp
85   UnhandledExceptionAtNewCheck.cpp
86   UnhandledSelfAssignmentCheck.cpp
87   UniquePtrArrayMismatchCheck.cpp
88   CrtpConstructorAccessibilityCheck.cpp
89   UnsafeFunctionsCheck.cpp
90   UnusedLocalNonTrivialVariableCheck.cpp
91   UnusedRaiiCheck.cpp
92   UnusedReturnValueCheck.cpp
93   UseAfterMoveCheck.cpp
94   VirtualNearMissCheck.cpp
96   LINK_LIBS
97   clangTidy
98   clangTidyCppCoreGuidelinesModule
99   clangTidyUtils
101   DEPENDS
102   omp_gen
103   ClangDriverOptions
104   )
106 clang_target_link_libraries(clangTidyBugproneModule
107   PRIVATE
108   clangAnalysis
109   clangAnalysisFlowSensitive
110   clangAnalysisFlowSensitiveModels
111   clangAST
112   clangASTMatchers
113   clangBasic
114   clangLex
115   clangTooling
116   clangTransformer
117   )