From f0c7b05b64aee26960af20788c0b1a206835ef19 Mon Sep 17 00:00:00 2001 From: Hans Wennborg Date: Mon, 30 Nov 2020 13:36:36 +0100 Subject: [PATCH] [gn build] Manually sync 8da7efb and cac5be4 This adds the clang-tidy concurrency module to the gn build. --- .../clang-tools-extra/clang-tidy/BUILD.gn | 1 + .../clang-tidy/concurrency/BUILD.gn | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 utils/gn/secondary/clang-tools-extra/clang-tidy/concurrency/BUILD.gn diff --git a/utils/gn/secondary/clang-tools-extra/clang-tidy/BUILD.gn b/utils/gn/secondary/clang-tools-extra/clang-tidy/BUILD.gn index 69217b702a6..cd65d60831c 100644 --- a/utils/gn/secondary/clang-tools-extra/clang-tidy/BUILD.gn +++ b/utils/gn/secondary/clang-tools-extra/clang-tidy/BUILD.gn @@ -70,6 +70,7 @@ group("all-checks") { "//clang-tools-extra/clang-tidy/boost", "//clang-tools-extra/clang-tidy/bugprone", "//clang-tools-extra/clang-tidy/cert", + "//clang-tools-extra/clang-tidy/concurrency", "//clang-tools-extra/clang-tidy/cppcoreguidelines", "//clang-tools-extra/clang-tidy/darwin", "//clang-tools-extra/clang-tidy/fuchsia", diff --git a/utils/gn/secondary/clang-tools-extra/clang-tidy/concurrency/BUILD.gn b/utils/gn/secondary/clang-tools-extra/clang-tidy/concurrency/BUILD.gn new file mode 100644 index 00000000000..ccded31b273 --- /dev/null +++ b/utils/gn/secondary/clang-tools-extra/clang-tidy/concurrency/BUILD.gn @@ -0,0 +1,19 @@ +static_library("concurrency") { + output_name = "clangTidyConcurrencyModule" + configs += [ "//llvm/utils/gn/build:clang_code" ] + deps = [ + "//clang-tools-extra/clang-tidy", + "//clang-tools-extra/clang-tidy/utils", + "//clang/lib/Analysis", + "//clang/lib/AST", + "//clang/lib/ASTMatchers", + "//clang/lib/Basic", + "//clang/lib/Lex", + "//clang/lib/Serialization", + "//clang/lib/Tooling", + ] + sources = [ + "ConcurrencyTidyModule.cpp", + "MtUnsafeCheck.cpp", + ] +}