mirror of
https://github.com/opencontainers/runc.git
synced 2025-04-18 19:44:09 +03:00
Disable clang-format
For the sake of developers who have LSP configured to auto-format the code upon save (that would me with my new nvim setup), let's not autoformat the C code when using clangd. Initially I tried to write a set of rules for clang-format which is identical to what we use (indent with a handful of options invoked from cfmt target in Makefile), but it appears to be impossible. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
parent
32d741358f
commit
81ca678f81
8
.clang-format
Normal file
8
.clang-format
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
# We use GNU indent from the Makefile to format C code in this project. Alas,
|
||||
# there is no way to map indent options to clang-format style options in a way
|
||||
# to achieve identical results for both formatters.
|
||||
#
|
||||
# Therefore, let's disable clang-format entirely.
|
||||
DisableFormat: true
|
||||
...
|
Loading…
x
Reference in New Issue
Block a user