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/Basic", 12 "//clang/lib/Lex", 13 "//clang/lib/Tooling", 14 "//llvm/lib/Support", 15 ] 16 sources = [ 17 "ArgumentCommentCheck.cpp", 18 "AssertSideEffectCheck.cpp", 19 "BadSignalToKillThreadCheck.cpp", 20 "BoolPointerImplicitConversionCheck.cpp", 21 "BranchCloneCheck.cpp", 22 "BugproneTidyModule.cpp", 23 "CopyConstructorInitCheck.cpp", 24 "DanglingHandleCheck.cpp", 25 "DynamicStaticInitializersCheck.cpp", 26 "ExceptionEscapeCheck.cpp", 27 "FoldInitTypeCheck.cpp", 28 "ForwardDeclarationNamespaceCheck.cpp", 29 "ForwardingReferenceOverloadCheck.cpp", 30 "InaccurateEraseCheck.cpp", 31 "IncorrectRoundingsCheck.cpp", 32 "InfiniteLoopCheck.cpp", 33 "IntegerDivisionCheck.cpp", 34 "LambdaFunctionNameCheck.cpp", 35 "MacroParenthesesCheck.cpp", 36 "MacroRepeatedSideEffectsCheck.cpp", 37 "MisplacedOperatorInStrlenInAllocCheck.cpp", 38 "MisplacedPointerArithmeticInAllocCheck.cpp", 39 "MisplacedWideningCastCheck.cpp", 40 "MoveForwardingReferenceCheck.cpp", 41 "MultipleStatementMacroCheck.cpp", 42 "NoEscapeCheck.cpp", 43 "NotNullTerminatedResultCheck.cpp", 44 "ParentVirtualCallCheck.cpp", 45 "PosixReturnCheck.cpp", 46 "RedundantBranchConditionCheck.cpp", 47 "ReservedIdentifierCheck.cpp", 48 "SignalHandlerCheck.cpp", 49 "SignedCharMisuseCheck.cpp", 50 "SizeofContainerCheck.cpp", 51 "SizeofExpressionCheck.cpp", 52 "SpuriouslyWakeUpFunctionsCheck.cpp", 53 "StringConstructorCheck.cpp", 54 "StringIntegerAssignmentCheck.cpp", 55 "StringLiteralWithEmbeddedNulCheck.cpp", 56 "SuspiciousEnumUsageCheck.cpp", 57 "SuspiciousIncludeCheck.cpp", 58 "SuspiciousMemsetUsageCheck.cpp", 59 "SuspiciousMissingCommaCheck.cpp", 60 "SuspiciousSemicolonCheck.cpp", 61 "SuspiciousStringCompareCheck.cpp", 62 "SwappedArgumentsCheck.cpp", 63 "TerminatingContinueCheck.cpp", 64 "ThrowKeywordMissingCheck.cpp", 65 "TooSmallLoopVariableCheck.cpp", 66 "UndefinedMemoryManipulationCheck.cpp", 67 "UndelegatedConstructorCheck.cpp", 68 "UnhandledSelfAssignmentCheck.cpp", 69 "UnusedRaiiCheck.cpp", 70 "UnusedReturnValueCheck.cpp", 71 "UseAfterMoveCheck.cpp", 72 "VirtualNearMissCheck.cpp", 73 ] 74} 75