summaryrefslogtreecommitdiff
path: root/lint/TARGETS
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2025-06-12 11:42:47 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2025-06-13 12:19:02 +0200
commitd46051807e37bd1e28a4c6ecd60d3a9f92103cc7 (patch)
tree9ddc088cd29e866f1d70384dd95066aba60820a3 /lint/TARGETS
parent551a068668cd08ae5025aa05eacd6eb934ca9c4b (diff)
downloadjustbuild-d46051807e37bd1e28a4c6ecd60d3a9f92103cc7.tar.gz
Add a lint target for clang-tidy
... using the already-committed configuration file and the version of clang-tidy that was imported from the toolchain.
Diffstat (limited to 'lint/TARGETS')
-rw-r--r--lint/TARGETS43
1 files changed, 43 insertions, 0 deletions
diff --git a/lint/TARGETS b/lint/TARGETS
new file mode 100644
index 00000000..a5456c85
--- /dev/null
+++ b/lint/TARGETS
@@ -0,0 +1,43 @@
+{ "":
+ { "type": "install"
+ , "tainted": ["lint", "test"]
+ , "dirs": [["LINT: clang-tidy", "clang-tidy"]]
+ }
+, "clang toolchain":
+ { "type": "configure"
+ , "arguments_config": ["TOOLCHAIN_CONFIG"]
+ , "target": ["@", "clang", "", "toolchain"]
+ , "config":
+ { "type": "`"
+ , "$1":
+ { "TOOLCHAIN_CONFIG":
+ { "type": ","
+ , "$1":
+ { "type": "map_union"
+ , "$1":
+ [ { "type": "var"
+ , "name": "TOOLCHAIN_CONFIG"
+ , "default": {"type": "empty_map"}
+ }
+ , {"type": "'", "$1": {"INCLUDE_LINTER": true}}
+ ]
+ }
+ }
+ }
+ }
+ }
+, "clang": {"type": "install", "dirs": [["clang toolchain", "toolchain"]]}
+, "LINT: clang-tidy":
+ { "type": ["@", "rules", "lint", "targets"]
+ , "tainted": ["test"]
+ , "name": ["clang-tidy"]
+ , "linter": ["run_clang_tidy.py"]
+ , "summarizer": ["summary.py"]
+ , "config": [["@", "src", "", ".clang-tidy"], "clang"]
+ , "targets":
+ [ ["@", "src", "src/buildtool/main", "just"]
+ , ["@", "src", "src/other_tools/just_mr", "just-mr"]
+ , ["@", "tests", "", "ALL"]
+ ]
+ }
+}