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" ]
7 "//clang/include/clang/StaticAnalyzer/Checkers",
9 "//clang/lib/ASTMatchers",
12 "//clang/lib/Frontend",
14 "//clang/lib/Rewrite",
16 "//clang/lib/Serialization",
17 "//clang/lib/Tooling",
18 "//clang/lib/Tooling/Core",
22 if (clang_enable_static_analyzer) {
24 "//clang/lib/StaticAnalyzer/Core",
25 "//clang/lib/StaticAnalyzer/Frontend",
32 "ClangTidyDiagnosticConsumer.cpp",
33 "ClangTidyModule.cpp",
34 "ClangTidyOptions.cpp",
35 "ClangTidyProfiling.cpp",
36 "ExpandModularHeadersPPCallbacks.cpp",
42 # If you add a check, also add it to ClangTidyForceLinker.h.
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",
65 if (clang_enable_static_analyzer) {
66 deps += [ "//clang-tools-extra/clang-tidy/mpi" ]