From 8207b75f11a5ec39d81c7419cc4a123771df848e Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Mon, 29 Jul 2019 17:48:02 +0000 Subject: [PATCH] gn build: Merge r367071 llvm-svn: 366289 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367245 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../clang-tidy/linuxkernel/BUILD.gn | 17 +++++++++++++++++ .../clang-tools-extra/clang-tidy/tool/BUILD.gn | 1 + 2 files changed, 18 insertions(+) create mode 100644 utils/gn/secondary/clang-tools-extra/clang-tidy/linuxkernel/BUILD.gn diff --git a/utils/gn/secondary/clang-tools-extra/clang-tidy/linuxkernel/BUILD.gn b/utils/gn/secondary/clang-tools-extra/clang-tidy/linuxkernel/BUILD.gn new file mode 100644 index 00000000000..109174d4f57 --- /dev/null +++ b/utils/gn/secondary/clang-tools-extra/clang-tidy/linuxkernel/BUILD.gn @@ -0,0 +1,17 @@ +static_library("linuxkernel") { + output_name = "clangTidyLinuxKernelModule" + configs += [ "//llvm/utils/gn/build:clang_code" ] + deps = [ + "//clang-tools-extra/clang-tidy", + "//clang-tools-extra/clang-tidy/utils", + "//clang/lib/AST", + "//clang/lib/ASTMatchers", + "//clang/lib/Basic", + "//clang/lib/Lex", + "//llvm/lib/Support", + ] + sources = [ + "LinuxKernelTidyModule.cpp", + "MustCheckErrsCheck.cpp", + ] +} diff --git a/utils/gn/secondary/clang-tools-extra/clang-tidy/tool/BUILD.gn b/utils/gn/secondary/clang-tools-extra/clang-tidy/tool/BUILD.gn index a5f7af4275f..46efc8ac99f 100644 --- a/utils/gn/secondary/clang-tools-extra/clang-tidy/tool/BUILD.gn +++ b/utils/gn/secondary/clang-tools-extra/clang-tidy/tool/BUILD.gn @@ -13,6 +13,7 @@ executable("clang-tidy") { "//clang-tools-extra/clang-tidy/fuchsia", "//clang-tools-extra/clang-tidy/google", "//clang-tools-extra/clang-tidy/hicpp", + "//clang-tools-extra/clang-tidy/linuxkernel", "//clang-tools-extra/clang-tidy/llvm", "//clang-tools-extra/clang-tidy/misc", "//clang-tools-extra/clang-tidy/modernize", -- 2.40.0