[MIParser] Set RegClassOrRegBank during instruction parsing
[llvm-complete.git] / utils / gn / secondary / clang-tools-extra / clang-tidy / BUILD.gn
blobe37930fc44a66bf287c43b4048d8c49aba8babcf
1 import("//clang/lib/StaticAnalyzer/Frontend/enable.gni")
3 static_library("clang-tidy") {
4   output_name = "clangTidy"
5   configs += [ "//llvm/utils/gn/build:clang_code" ]
6   deps = [
7     "//clang/include/clang/StaticAnalyzer/Checkers",
8     "//clang/lib/AST",
9     "//clang/lib/ASTMatchers",
10     "//clang/lib/Basic",
11     "//clang/lib/Format",
12     "//clang/lib/Frontend",
13     "//clang/lib/Lex",
14     "//clang/lib/Rewrite",
15     "//clang/lib/Sema",
16     "//clang/lib/Serialization",
17     "//clang/lib/Tooling",
18     "//clang/lib/Tooling/Core",
19     "//llvm/lib/Support",
20   ]
22   if (clang_enable_static_analyzer) {
23     deps += [
24       "//clang/lib/StaticAnalyzer/Core",
25       "//clang/lib/StaticAnalyzer/Frontend",
26     ]
27   }
29   sources = [
30     "ClangTidy.cpp",
31     "ClangTidyCheck.cpp",
32     "ClangTidyDiagnosticConsumer.cpp",
33     "ClangTidyModule.cpp",
34     "ClangTidyOptions.cpp",
35     "ClangTidyProfiling.cpp",
36     "ExpandModularHeadersPPCallbacks.cpp",
37     "GlobList.cpp",
38   ]
41 group("all-checks") {
42   # If you add a check, also add it to ClangTidyForceLinker.h.
43   deps = [
44     "//clang-tools-extra/clang-tidy/abseil",
45     "//clang-tools-extra/clang-tidy/android",
46     "//clang-tools-extra/clang-tidy/boost",
47     "//clang-tools-extra/clang-tidy/bugprone",
48     "//clang-tools-extra/clang-tidy/cert",
49     "//clang-tools-extra/clang-tidy/cppcoreguidelines",
50     "//clang-tools-extra/clang-tidy/darwin",
51     "//clang-tools-extra/clang-tidy/fuchsia",
52     "//clang-tools-extra/clang-tidy/google",
53     "//clang-tools-extra/clang-tidy/hicpp",
54     "//clang-tools-extra/clang-tidy/linuxkernel",
55     "//clang-tools-extra/clang-tidy/llvm",
56     "//clang-tools-extra/clang-tidy/misc",
57     "//clang-tools-extra/clang-tidy/modernize",
58     "//clang-tools-extra/clang-tidy/objc",
59     "//clang-tools-extra/clang-tidy/openmp",
60     "//clang-tools-extra/clang-tidy/performance",
61     "//clang-tools-extra/clang-tidy/portability",
62     "//clang-tools-extra/clang-tidy/readability",
63     "//clang-tools-extra/clang-tidy/zircon",
64   ]
65   if (clang_enable_static_analyzer) {
66     deps += [ "//clang-tools-extra/clang-tidy/mpi" ]
67   }