Move clang-format config to .clang-format

This commit is contained in:
Andrea Bedini 2023-07-14 14:46:10 +08:00 committed by mergify[bot]
parent 15e5f5f7c8
commit 22a2008a68
2 changed files with 4 additions and 5 deletions

3
.clang-format Normal file
View file

@ -0,0 +1,3 @@
BasedOnStyle: llvm
IndentWidth: 4
SortIncludes: false

View file

@ -1,10 +1,6 @@
[formatter."c++"]
command = "clang-format"
options = [
"-i",
"-style",
"{BasedOnStyle: llvm, IndentWidth: 4, SortIncludes: false}"
]
options = ["-i"]
includes = ["*.c", "*.cpp", "*.cc", "*.h", "*.hpp"]
[formatter.nix]