Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 1.13 KB

experimental.md

File metadata and controls

39 lines (29 loc) · 1.13 KB

Experimental Rules

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.

clang_ctu_test()

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",
    ],
)

Per-file CodeChecker analysis

The per_file = True option of codechecker_test() is a prototype as well, see CodeChecker rules.