[PATCH] D157773: [clang-tidy] fix None tmpdir when exporting fixes in run-clang-tidy
Piotr Zegar via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Aug 12 09:19:01 PDT 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rGc3da99275a52: [clang-tidy] fix None tmpdir when exporting fixes in run-clang-tidy (authored by 5chmidti, committed by PiotrZSL).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D157773/new/
https://reviews.llvm.org/D157773
Files:
clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
Index: clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
===================================================================
--- clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
+++ clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
@@ -389,6 +389,8 @@
clang_apply_replacements_binary = find_binary(
args.clang_apply_replacements_binary, "clang-apply-replacements", build_path
)
+
+ if args.fix or (yaml and args.export_fixes):
tmpdir = tempfile.mkdtemp()
try:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157773.549622.patch
Type: text/x-patch
Size: 517 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230812/33c74904/attachment.bin>
More information about the cfe-commits
mailing list