1 static_library("bugprone") {
2 output_name = "clangTidyBugproneModule"
3 configs += [ "//llvm/utils/gn/build:clang_code" ]
5 "//clang-tools-extra/clang-tidy",
6 "//clang-tools-extra/clang-tidy/cppcoreguidelines",
7 "//clang-tools-extra/clang-tidy/utils",
9 "//clang/lib/ASTMatchers",
10 "//clang/lib/Analysis",
11 "//clang/lib/Analysis/FlowSensitive",
12 "//clang/lib/Analysis/FlowSensitive/Models",
15 "//clang/lib/Tooling",
19 "ArgumentCommentCheck.cpp",
20 "AssertSideEffectCheck.cpp",
21 "AssignmentInIfConditionCheck.cpp",
22 "BadSignalToKillThreadCheck.cpp",
23 "BoolPointerImplicitConversionCheck.cpp",
24 "BranchCloneCheck.cpp",
25 "BugproneTidyModule.cpp",
26 "CopyConstructorInitCheck.cpp",
27 "DanglingHandleCheck.cpp",
28 "DynamicStaticInitializersCheck.cpp",
29 "EasilySwappableParametersCheck.cpp",
30 "ExceptionEscapeCheck.cpp",
31 "FoldInitTypeCheck.cpp",
32 "ForwardDeclarationNamespaceCheck.cpp",
33 "ForwardingReferenceOverloadCheck.cpp",
34 "ImplicitWideningOfMultiplicationResultCheck.cpp",
35 "InaccurateEraseCheck.cpp",
36 "IncorrectRoundingsCheck.cpp",
37 "InfiniteLoopCheck.cpp",
38 "IntegerDivisionCheck.cpp",
39 "LambdaFunctionNameCheck.cpp",
40 "MacroParenthesesCheck.cpp",
41 "MacroRepeatedSideEffectsCheck.cpp",
42 "MisplacedOperatorInStrlenInAllocCheck.cpp",
43 "MisplacedPointerArithmeticInAllocCheck.cpp",
44 "MisplacedWideningCastCheck.cpp",
45 "MoveForwardingReferenceCheck.cpp",
46 "MultipleNewInOneExpressionCheck.cpp",
47 "MultipleStatementMacroCheck.cpp",
49 "NonZeroEnumToBoolConversionCheck.cpp",
50 "NotNullTerminatedResultCheck.cpp",
51 "ParentVirtualCallCheck.cpp",
52 "PosixReturnCheck.cpp",
53 "RedundantBranchConditionCheck.cpp",
54 "ReservedIdentifierCheck.cpp",
55 "SharedPtrArrayMismatchCheck.cpp",
56 "SignalHandlerCheck.cpp",
57 "SignedCharMisuseCheck.cpp",
58 "SizeofContainerCheck.cpp",
59 "SizeofExpressionCheck.cpp",
60 "SmartPtrArrayMismatchCheck.cpp",
61 "SpuriouslyWakeUpFunctionsCheck.cpp",
62 "StandaloneEmptyCheck.cpp",
63 "StringConstructorCheck.cpp",
64 "StringIntegerAssignmentCheck.cpp",
65 "StringLiteralWithEmbeddedNulCheck.cpp",
66 "StringviewNullptrCheck.cpp",
67 "SuspiciousEnumUsageCheck.cpp",
68 "SuspiciousIncludeCheck.cpp",
69 "SuspiciousMemoryComparisonCheck.cpp",
70 "SuspiciousMemsetUsageCheck.cpp",
71 "SuspiciousMissingCommaCheck.cpp",
72 "SuspiciousReallocUsageCheck.cpp",
73 "SuspiciousSemicolonCheck.cpp",
74 "SuspiciousStringCompareCheck.cpp",
75 "SwappedArgumentsCheck.cpp",
76 "TerminatingContinueCheck.cpp",
77 "ThrowKeywordMissingCheck.cpp",
78 "TooSmallLoopVariableCheck.cpp",
79 "UncheckedOptionalAccessCheck.cpp",
80 "UndefinedMemoryManipulationCheck.cpp",
81 "UndelegatedConstructorCheck.cpp",
82 "UnhandledExceptionAtNewCheck.cpp",
83 "UnhandledSelfAssignmentCheck.cpp",
84 "UnsafeFunctionsCheck.cpp",
85 "UnusedRaiiCheck.cpp",
86 "UnusedReturnValueCheck.cpp",
87 "UseAfterMoveCheck.cpp",
88 "VirtualNearMissCheck.cpp",