1static_library("bugprone") { 2 output_name = "clangTidyBugproneModule" 3 configs += [ "//llvm/utils/gn/build:clang_code" ] 4 deps = [ 5 "//clang-tools-extra/clang-tidy", 6 "//clang-tools-extra/clang-tidy/cppcoreguidelines", 7 "//clang-tools-extra/clang-tidy/utils", 8 "//clang/lib/AST", 9 "//clang/lib/ASTMatchers", 10 "//clang/lib/Analysis", 11 "//clang/lib/Analysis/FlowSensitive", 12 "//clang/lib/Analysis/FlowSensitive/Models", 13 "//clang/lib/Basic", 14 "//clang/lib/Lex", 15 "//clang/lib/Tooling", 16 "//llvm/lib/Support", 17 ] 18 sources = [ 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 "MultipleStatementMacroCheck.cpp", 47 "NoEscapeCheck.cpp", 48 "NotNullTerminatedResultCheck.cpp", 49 "ParentVirtualCallCheck.cpp", 50 "PosixReturnCheck.cpp", 51 "RedundantBranchConditionCheck.cpp", 52 "ReservedIdentifierCheck.cpp", 53 "SharedPtrArrayMismatchCheck.cpp", 54 "SignalHandlerCheck.cpp", 55 "SignedCharMisuseCheck.cpp", 56 "SizeofContainerCheck.cpp", 57 "SizeofExpressionCheck.cpp", 58 "SmartPtrArrayMismatchCheck.cpp", 59 "SpuriouslyWakeUpFunctionsCheck.cpp", 60 "StandaloneEmptyCheck.cpp", 61 "StringConstructorCheck.cpp", 62 "StringIntegerAssignmentCheck.cpp", 63 "StringLiteralWithEmbeddedNulCheck.cpp", 64 "StringviewNullptrCheck.cpp", 65 "SuspiciousEnumUsageCheck.cpp", 66 "SuspiciousIncludeCheck.cpp", 67 "SuspiciousMemoryComparisonCheck.cpp", 68 "SuspiciousMemsetUsageCheck.cpp", 69 "SuspiciousMissingCommaCheck.cpp", 70 "SuspiciousReallocUsageCheck.cpp", 71 "SuspiciousSemicolonCheck.cpp", 72 "SuspiciousStringCompareCheck.cpp", 73 "SwappedArgumentsCheck.cpp", 74 "TerminatingContinueCheck.cpp", 75 "ThrowKeywordMissingCheck.cpp", 76 "TooSmallLoopVariableCheck.cpp", 77 "UncheckedOptionalAccessCheck.cpp", 78 "UndefinedMemoryManipulationCheck.cpp", 79 "UndelegatedConstructorCheck.cpp", 80 "UnhandledExceptionAtNewCheck.cpp", 81 "UnhandledSelfAssignmentCheck.cpp", 82 "UnusedRaiiCheck.cpp", 83 "UnusedReturnValueCheck.cpp", 84 "UseAfterMoveCheck.cpp", 85 "VirtualNearMissCheck.cpp", 86 ] 87} 88