From d46051807e37bd1e28a4c6ecd60d3a9f92103cc7 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Thu, 12 Jun 2025 11:42:47 +0200 Subject: 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. --- lint/TARGETS | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 lint/TARGETS (limited to 'lint/TARGETS') 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"] + ] + } +} -- cgit v1.2.3