`clang-format` crashes my macOS (M3 Pro; 36GB of RAM)
Open
clang-format
- Dominant language
- LLVM
- Stars
- 40.5k
- Forks
- 18.7k
- PR merge metrics
- PR metrics pending
Description
Replicate:
[c-multiplatform.zip](https://github.com/user-attachments/files/31341347/c-multiplatform.zip)
```sh
$ git reset --soft HEAD~1
$ fd -eh -ec -x clang-format --style=LLVM -i
```
The program can crash or whatever but here my entire machine freezes and I have to hold down the power button until it turns off.
Contributor guide
Research direction
Download c-multiplatform.zip and reproduce the freeze with `fd -eh -ec -x clang-format --style=LLVM -i` after the stated `git reset --soft HEAD~1`. Start by determining whether the failure is specific to the supplied C project, the LLVM style, or macOS; done means the command no longer freezes the machine or otherwise crashes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, macos
- Domain
- operating-systems, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100