[all-commits] [llvm/llvm-project] 75383d: clang-format/test: Anchor the empty .clang-format-...

Nicolai Hähnle via All-commits all-commits at lists.llvm.org
Fri Jun 12 07:06:27 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 75383d62ecde9e4948c6146662707d53cb496e08
      https://github.com/llvm/llvm-project/commit/75383d62ecde9e4948c6146662707d53cb496e08
  Author: Nicolai Hähnle <nicolai.haehnle at amd.com>
  Date:   2026-06-12 (Fri, 12 Jun 2026)

  Changed paths:
    M clang/test/Format/lit.local.cfg

  Log Message:
  -----------
  clang-format/test: Anchor the empty .clang-format-ignore to test_exec_root (#203444)

The test suite's lit.local.cfg creates an empty .clang-format-ignore at
config discovery time to protect the multiple-inputs[-inplace].cpp tests
that work on files in temporary locations.

This file should be written to where the tests execute instead of the
CWD during config discovery. The CWD might not even be an ancestor of
where the tests execute, and it might be the repository root which does
have a .clang-format-ignore that is incorrectly clobbered without this
change.

An alternative would be to just fix the tests that need to be protected,
but having a blanket guard like this does seem like a reasonable thing
to do.

Fixes: 915de1a5889c ("Generate empty .clang-format-ignore before running
tests (#136154)")



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list