Important
The rules on this page are prototypes and are subject to changes or removal
without notice. They are not part of the public API and are
loaded from @rules_codechecker//src.
Important
The rule is still in prototype status and is subject to changes or removal without notice. See #32. We are also actively pursuing better CTU support using CodeChecker.
The Bazel rule clang_ctu_test() runs The Clang Static Analyzer with
cross translation unit analysis
analysis without CodeChecker. To use it, add the following to your BUILD file:
load(
"@rules_codechecker//src:clang_ctu.bzl",
"clang_ctu_test",
)
clang_ctu_test(
name = "your_clang_ctu_rule_name",
targets = [
"your_target",
],
)The per_file = True option of codechecker_test() is a prototype as well,
see CodeChecker rules.