Lines Matching +full:stdout +full:- +full:path
2 # SPDX-License-Identifier: GPL-2.0
8 """A helper routine run clang-tidy and the clang static-analyzer on
21 """Set up and parses command-line arguments.
24 Has keys: [path, type]
26 usage = """Run clang-tidy or the clang static-analyzer on a
32 choices=["clang-tidy", "clang-analyzer"],
34 path_help = "Path to the compilation database to parse"
35 parser.add_argument("path", type=str, help=path_help)
48 # Disable all checks, then re-enable the ones we want
49 checks = "-checks=-*,"
50 if args.type == "clang-tidy":
51 checks += "linuxkernel-*"
53 checks += "clang-analyzer-*"
54 p = subprocess.run(["clang-tidy", "-p", args.path, checks, entry["file"]],
55 stdout=subprocess.PIPE,
56 stderr=subprocess.STDOUT,
59 sys.stderr.buffer.write(p.stdout)
68 with open(args.path, "r") as f: