This commit is contained in:
Nishi 2025-12-19 03:10:03 +09:00
commit edd75c58f6
Signed by: nishi
GPG key ID: 27EF69B208EB9343
6 changed files with 36 additions and 14 deletions

20
.clang-format Normal file
View file

@ -0,0 +1,20 @@
---
Language: Cpp
UseTab: Always
TabWidth: 8
AlignConsecutiveAssignments:
Enabled: true
AlignConsecutiveDeclarations:
Enabled: true
IndentWidth: 8
PointerAlignment: Left
ColumnLimit: 0
AllowShortIfStatementsOnASingleLine: Always
AllowShortBlocksOnASingleLine: Never
AllowShortFunctionsOnASingleLine: Empty
AllowShortLoopsOnASingleLine: true
SpaceBeforeParens: Never
AlignEscapedNewlines: DontAlign
SortIncludes: false
AllowShortEnumsOnASingleLine: false
#IndentPPDirectives: AfterHash

2
external/milsko vendored

@ -1 +1 @@
Subproject commit 012650f06f489d1219ba492118d2f35d25e93ce2 Subproject commit 75749697ba25330127fdca110fda9098d65719e3

2
format.sh Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
clang-format --verbose -i `find include server client -name "*.c" -or -name "*.h"`