brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.9 KiB · c58d132 Raw
63 lines · plain
1import("//llvm/utils/gn/build/compiled_action.gni")2 3compiled_action("Confusables.inc") {4  tool = "ConfusableTable:clang-tidy-confusable-chars-gen"5  inputs = [ "ConfusableTable/confusables.txt" ]6  outputs = [ "$target_gen_dir/$target_name" ]7  args = [8    rebase_path(inputs[0], root_build_dir),9    rebase_path(outputs[0], root_build_dir),10  ]11}12 13static_library("misc") {14  output_name = "clangTidyMiscModule"15  configs += [ "//llvm/utils/gn/build:clang_code" ]16  include_dirs = [17    target_gen_dir,18    "//clang-tools-extra/include-cleaner/include",19  ]20  deps = [21    ":Confusables.inc",22    "//clang-tools-extra/clang-tidy",23    "//clang-tools-extra/clang-tidy/utils",24    "//clang-tools-extra/include-cleaner/lib",25    "//clang/lib/AST",26    "//clang/lib/ASTMatchers",27    "//clang/lib/Analysis",28    "//clang/lib/Basic",29    "//clang/lib/Lex",30    "//clang/lib/Serialization",31    "//clang/lib/Tooling",32    "//llvm/lib/Support",33  ]34  sources = [35    "ConfusableIdentifierCheck.cpp",36    "ConstCorrectnessCheck.cpp",37    "CoroutineHostileRAIICheck.cpp",38    "DefinitionsInHeadersCheck.cpp",39    "HeaderIncludeCycleCheck.cpp",40    "IncludeCleanerCheck.cpp",41    "MiscTidyModule.cpp",42    "MisleadingBidirectionalCheck.cpp",43    "MisleadingIdentifierCheck.cpp",44    "MisplacedConstCheck.cpp",45    "NewDeleteOverloadsCheck.cpp",46    "NoRecursionCheck.cpp",47    "NonCopyableObjectsCheck.cpp",48    "NonPrivateMemberVariablesInClassesCheck.cpp",49    "OverrideWithDifferentVisibilityCheck.cpp",50    "PredictableRandCheck.cpp",51    "RedundantExpressionCheck.cpp",52    "StaticAssertCheck.cpp",53    "ThrowByValueCatchByReferenceCheck.cpp",54    "UnconventionalAssignOperatorCheck.cpp",55    "UniqueptrResetReleaseCheck.cpp",56    "UnusedAliasDeclsCheck.cpp",57    "UnusedParametersCheck.cpp",58    "UnusedUsingDeclsCheck.cpp",59    "UseAnonymousNamespaceCheck.cpp",60    "UseInternalLinkageCheck.cpp",61  ]62}63