]> Sergey Matveev's repositories - dotfiles.git/commitdiff
More C formatting
authorSergey Matveev <stargrave@stargrave.org>
Thu, 9 Apr 2020 08:04:38 +0000 (11:04 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Thu, 9 Apr 2020 08:04:38 +0000 (11:04 +0300)
bin/bin/cfmt.sh

index 40e6953312e302c91042d54c4f7b676974ef08cf..51585caeb1ddab87e394444b075afb6ad77ba13a 100755 (executable)
@@ -2,8 +2,11 @@
 
 clang-format60 -style="{
     BasedOnStyle: llvm,
+    ColumnLimit: 88,
     IndentWidth: 4,
     AllowAllParametersOfDeclarationOnNextLine: false,
+    AllowShortBlocksOnASingleLine: true,
+    AllowShortCaseLabelsOnASingleLine: true,
     BinPackArguments: false,
     BinPackParameters: false,
     BreakStringLiterals: false,