68 process = subprocess.Popen(
71 "--check=" + args.source,
72 "--check-locations=0",
73 "--check-tidy-time=" + args.checks,
75 stderr=subprocess.PIPE,
78 for line
in iter(process.stderr.readline, b
""):
80 print(
"clangd> ", line, file=sys.stderr)
82 if b
"Timing AST build with individual clang-tidy checks" in line:
85 if b
"Finished individual clang-tidy checks" in line:
87 match = re.search(rb
"(\S+) = (\S+)%", line)
89 yield (match.group(1).decode(
"utf-8"), float(match.group(2)))