-
Notifications
You must be signed in to change notification settings - Fork 1
/
BUILD.bazel
52 lines (44 loc) · 1.18 KB
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
load("@bazel_clang_format//:defs.bzl", "clang_format_update")
load("@bazel_clang_tidy//:defs.bzl", "clang_tidy_apply_fixes")
load("@buildifier_prebuilt//:rules.bzl", "buildifier")
load("@rules_cc//cc:defs.bzl", "cc_library")
package(default_visibility = ["//visibility:public"])
filegroup(
name = "format_config",
srcs = [".clang-format"],
visibility = ["//visibility:public"],
)
filegroup(
name = "tidy_config",
srcs = [".clang-tidy"],
visibility = ["//visibility:public"],
)
clang_format_update(
name = "clang-format",
binary = "@llvm_toolchain//:clang-format",
config = ":format_config",
)
clang_tidy_apply_fixes(
name = "clang-tidy-fix",
apply_replacements_binary = "@llvm_toolchain//:clang-apply-replacements",
tidy_binary = "@llvm_toolchain//:clang-tidy",
tidy_config = ":tidy_config",
)
buildifier(
name = "buildifier.check",
lint_mode = "warn",
mode = "check",
)
buildifier(
name = "buildifier.fix",
lint_mode = "warn",
mode = "fix",
)
cc_library(
name = "boost_ut",
testonly = True,
hdrs = ["ut.hpp"],
include_prefix = "boost",
visibility = ["//:__subpackages__"],
deps = ["@boost_ut"],
)