From 2e2a8362aaa25b70bd11fe14c3035227f41960dd Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Thu, 12 Jun 2025 12:24:34 +0200 Subject: Add lint target for clang-format --- lint/TARGETS | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) (limited to 'lint/TARGETS') diff --git a/lint/TARGETS b/lint/TARGETS index a5456c85..0a52a37d 100644 --- a/lint/TARGETS +++ b/lint/TARGETS @@ -1,7 +1,10 @@ { "": { "type": "install" , "tainted": ["lint", "test"] - , "dirs": [["LINT: clang-tidy", "clang-tidy"]] + , "dirs": + [ ["LINT: clang-tidy", "clang-tidy"] + , ["LINT: clang-format", "clang-format"] + ] } , "clang toolchain": { "type": "configure" @@ -40,4 +43,24 @@ , ["@", "tests", "", "ALL"] ] } +, "LINT: clang-format": + { "type": ["@", "rules", "lint", "targets"] + , "tainted": ["test"] + , "name": ["clang-format"] + , "linter": ["run_clang_format.py"] + , "summarizer": ["summary.py"] + , "config": [["@", "src", "", ".clang-format"], "clang"] + , "targets": + [ ["@", "src", "src/buildtool/main", "just"] + , ["@", "src", "src/other_tools/just_mr", "just-mr"] + , ["@", "tests", "", "ALL"] + ] + } +, "format.diff": + { "type": "generic" + , "tainted": ["lint", "test"] + , "cmds": ["./create-diff.py"] + , "outs": ["format.diff"] + , "deps": ["LINT: clang-format", "create-diff.py"] + } } -- cgit v1.2.3