format and update

This commit is contained in:
Nishi 2025-11-17 18:21:13 +09:00
commit d5f501596c
Signed by: nishi
GPG key ID: 27EF69B208EB9343
2 changed files with 29 additions and 0 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

8
format.sh Executable file
View file

@ -0,0 +1,8 @@
#!/bin/sh
cd mdebase
./format.sh
cd ..
cd mdelibs
./format.sh
cd ..