MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / main

Function main

tools/run_clang_tidy.py:66–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64
65
66def main() -> None:
67 repo_root = Path(__file__).resolve().parent.parent
68 build_dir = repo_root / "build" / "clang-tidy"
69
70 result = subprocess.run(
71 ["meson", "setup", "--reconfigure", str(build_dir)],
72 cwd=repo_root,
73 )
74 if result.returncode != 0:
75 sys.exit(result.returncode)
76
77 result = subprocess.run(
78 [
79 "meson",
80 "--internal",
81 "clangtidy",
82 str(repo_root),
83 str(build_dir),
84 "--color",
85 "never",
86 ],
87 cwd=build_dir,
88 capture_output=True,
89 text=True,
90 )
91
92 filtered = _filter_clang_tidy_output(result.stdout)
93 if filtered:
94 print(filtered)
95 if result.stderr:
96 print(result.stderr, end="", file=sys.stderr)
97
98 sys.exit(result.returncode)
99
100
101if __name__ == "__main__":

Callers 1

run_clang_tidy.pyFile · 0.70

Calls 4

PathClass · 0.85
resolveMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…