fix(style): drop clang-format #39514

Problem: C formatting is enforced in CI via uncrustify, but when working
on C code clangd formats on save via clang-format, forcing users to
manually run `make formatc` after they're done.

Solution: disable clang-format.
This commit is contained in:
Riccardo Mazzarini authored and GitHub committed 2026-05-01 10:01:40 -04:00
1 parent 9734f33bc7
commit ad2cf23435
3 files changed
+1 -76

No files matched your search

-7
View File
@@ -214,13 +214,6 @@ make lint # or lintc, lintlua, lintquery, lintdoc
setlocal formatprg=uncrustify\ -q\ -l\ C\ -c\ src/uncrustify.cfg\ --no-backup
endif
```
- There is also `.clang-format` which is "mostly" aligned with uncrustify.
To use the Nvim `gq` command with `clang-format`:
```vim
if !empty(findfile('.clang-format', ';'))
setlocal formatprg=clang-format\ -style=file
endif
```
### Navigate