49 with tempfile.TemporaryDirectory()
as td:
50 temp_root = os.path.join(td,
"clang-tools-extra")
51 temp_clang_tidy_dir = os.path.join(temp_root,
"clang-tidy")
52 temp_docs_dir = os.path.join(temp_root,
"docs")
54 shutil.copytree(CLANG_TIDY_DIR, temp_clang_tidy_dir)
55 shutil.copytree(DOCS_DIR, temp_docs_dir)
60 os.path.join(temp_clang_tidy_dir,
"add_new_check.py"),
63 cwd=temp_clang_tidy_dir,
65 stdout=subprocess.PIPE,
66 stderr=subprocess.STDOUT,
71 os.path.join(temp_docs_dir,
"clang-tidy",
"checks",
"list.rst")