[gn build] (manually) port 18b4a8bcf35 more
[platform/upstream/llvm.git] / llvm / utils / gn / secondary / clang-tools-extra / clang-tidy / misc / BUILD.gn
1 import("//llvm/utils/gn/build/compiled_action.gni")
2
3 compiled_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
13 static_library("misc") {
14   output_name = "clangTidyMiscModule"
15   configs += [ "//llvm/utils/gn/build:clang_code" ]
16   include_dirs = [ target_gen_dir ]
17   deps = [
18     ":Confusables.inc",
19     "//clang-tools-extra/clang-tidy",
20     "//clang-tools-extra/clang-tidy/utils",
21     "//clang/lib/AST",
22     "//clang/lib/ASTMatchers",
23     "//clang/lib/Analysis",
24     "//clang/lib/Basic",
25     "//clang/lib/Lex",
26     "//clang/lib/Serialization",
27     "//clang/lib/Tooling",
28     "//llvm/lib/Support",
29   ]
30   sources = [
31     "ConfusableIdentifierCheck.cpp",
32     "ConstCorrectnessCheck.cpp",
33     "DefinitionsInHeadersCheck.cpp",
34     "MiscTidyModule.cpp",
35     "MisleadingBidirectional.cpp",
36     "MisleadingIdentifier.cpp",
37     "MisplacedConstCheck.cpp",
38     "NewDeleteOverloadsCheck.cpp",
39     "NoRecursionCheck.cpp",
40     "NonCopyableObjects.cpp",
41     "NonPrivateMemberVariablesInClassesCheck.cpp",
42     "RedundantExpressionCheck.cpp",
43     "StaticAssertCheck.cpp",
44     "ThrowByValueCatchByReferenceCheck.cpp",
45     "UnconventionalAssignOperatorCheck.cpp",
46     "UniqueptrResetReleaseCheck.cpp",
47     "UnusedAliasDeclsCheck.cpp",
48     "UnusedParametersCheck.cpp",
49     "UnusedUsingDeclsCheck.cpp",
50   ]
51 }