diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-06-13 14:50:44 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-06-16 17:43:13 +0200 |
commit | 0cf23b92126dc2ae07f1a2e065d9747992275fde (patch) | |
tree | d72d2edcbb462bb8f768aa86289c367ed159452f /lint/TARGETS | |
parent | 6628cdb47abbac1d2982698f75aa4ff9fd08bdfc (diff) | |
download | justbuild-0cf23b92126dc2ae07f1a2e065d9747992275fde.tar.gz |
Add lint target for iwyu
Co-authored-by: Maksim Denisov <denisov.maksim@huawei.com>
Co-authored-by: Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com>
Diffstat (limited to 'lint/TARGETS')
-rw-r--r-- | lint/TARGETS | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lint/TARGETS b/lint/TARGETS index 0a52a37d..5e260c79 100644 --- a/lint/TARGETS +++ b/lint/TARGETS @@ -4,6 +4,7 @@ , "dirs": [ ["LINT: clang-tidy", "clang-tidy"] , ["LINT: clang-format", "clang-format"] + , ["LINT: iwyu", "iwyu"] ] } , "clang toolchain": @@ -63,4 +64,19 @@ , "outs": ["format.diff"] , "deps": ["LINT: clang-format", "create-diff.py"] } +, "iwyu config": + {"type": "install", "files": {"iwyu-mapping": "iwyu-mapping.imp"}} +, "LINT: iwyu": + { "type": ["@", "rules", "lint", "targets"] + , "tainted": ["test"] + , "name": ["iwyu"] + , "linter": ["run_iwyu.py"] + , "summarizer": ["summary.py"] + , "config": ["iwyu config", "clang"] + , "targets": + [ ["@", "src", "src/buildtool/main", "just"] + , ["@", "src", "src/other_tools/just_mr", "just-mr"] + , ["@", "tests", "", "ALL"] + ] + } } |