[all-commits] [llvm/llvm-project] c3da99: [clang-tidy] fix None tmpdir when exporting fixes ...

5chmidti via All-commits all-commits at lists.llvm.org
Sat Aug 12 09:19:08 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c3da99275a520b73235d975017502876e07e3e8e
      https://github.com/llvm/llvm-project/commit/c3da99275a520b73235d975017502876e07e3e8e
  Author: Julian Schmidt <44101708+5chmidti at users.noreply.github.com>
  Date:   2023-08-12 (Sat, 12 Aug 2023)

  Changed paths:
    M clang-tools-extra/clang-tidy/tool/run-clang-tidy.py

  Log Message:
  -----------
  [clang-tidy] fix None tmpdir when exporting fixes in run-clang-tidy

Differential https://reviews.llvm.org/D145477 removed the check for `(yaml and args.export_fixes)` in line 303 to skip looking for the `clang-apply-replacements` binary. However, the `tmpdir` variable was set in this true branch when exporting fixes and therefore is `None` when invoking run-clang-tidy with `run-clang-tidy -p . -export-fixes fixes.yaml`.

Reviewed By: PiotrZSL

Differential Revision: https://reviews.llvm.org/D157773




More information about the All-commits mailing list