This module provides common build utilities and macros for strict C++ development using Bazel.
- Strict C++ Macros: Wrappers around
cc_library,cc_binary, andcc_testthat enforce C++20 and warnings-as-errors. - Lint configuration: It provide
.clang-tidyand.clang-formatconfiguration files.
bazel_dep(name = "build_utils", version = "0.0.1")If you are using it locally:
local_path_override(
module_name = "build_utils",
path = "path/to/build_utils",
)In your BUILD.bazel files:
load("@build_utils//:defs.bzl", "strict_cc_library", "strict_cc_binary", "strict_cc_test")
strict_cc_library(
name = "my_lib",
srcs = ["my_lib.cpp"],
hdrs = ["my_lib.hpp"],
)