More C formatting
authorSergey Matveev <stargrave@stargrave.org>
Thu, 2 Apr 2020 13:36:23 +0000 (16:36 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Thu, 2 Apr 2020 13:36:23 +0000 (16:36 +0300)
bin/bin/cfmt.sh
vim/.vim/ftplugin/c/autos.vim

index 09d856034a3e5cc549a163e3bc37ccba0db39bc7..80496665657cc9043797d188d5aca15ca4c7f8b3 100755 (executable)
@@ -1,3 +1,10 @@
 #!/bin/sh
 
-clang-format60 -style="{BasedOnStyle: llvm, IndentWidth: 4}" $@
+clang-format60 -style="{
+    BasedOnStyle: llvm,
+    IndentWidth: 4,
+    AllowAllParametersOfDeclarationOnNextLine: false,
+    BinPackArguments: false,
+    BinPackParameters: false,
+    AllowAllParametersOfDeclarationOnNextLine: false,
+}" $@
index d211fd17e88d37dca30879d8080837abd14bf306..1eb3aaed71ea2ef8f7221471f0bd0c6846f02390 100644 (file)
@@ -1,2 +1,3 @@
 setlocal equalprg=cfmt.sh
+setlocal commentstring=//\ %s
 command! -buffer Fmt normal mtgg=G'tz.