[all-commits] [llvm/llvm-project] bb8784: clang-format/test: Anchor the empty .clang-format-...
Nicolai Hähnle via All-commits
all-commits at lists.llvm.org
Thu Jun 11 20:02:00 PDT 2026
Branch: refs/heads/users/nhaehnle/spr/main/fe858dac
Home: https://github.com/llvm/llvm-project
Commit: bb87842a8612044cc6cf3d1ef70e7a3e5d955c8d
https://github.com/llvm/llvm-project/commit/bb87842a8612044cc6cf3d1ef70e7a3e5d955c8d
Author: Nicolai Hähnle <nicolai.haehnle at amd.com>
Date: 2026-06-11 (Thu, 11 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
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)")
commit-id:fe858dac
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