This commit is contained in:
Nishi 2025-11-17 18:20:36 +09:00
commit bbbcfb97f5
Signed by: nishi
GPG key ID: 27EF69B208EB9343
9 changed files with 155 additions and 131 deletions

21
.clang-format Normal file
View file

@ -0,0 +1,21 @@
---
# $Id: .clang-format 567 2025-11-02 00:00:24Z nishi $
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

3
format.sh Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
DIRS="include milkwm mdm mpanel"
clang-format --verbose -i `find $DIRS -name "*.c" -or -name "*.h"`