From d5f501596c772241b1e9aae467be3110e749bdb7 Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Mon, 17 Nov 2025 18:21:13 +0900 Subject: [PATCH] format and update --- .clang-format | 21 +++++++++++++++++++++ format.sh | 8 ++++++++ 2 files changed, 29 insertions(+) create mode 100644 .clang-format create mode 100755 format.sh diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..f4cf343 --- /dev/null +++ b/.clang-format @@ -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 diff --git a/format.sh b/format.sh new file mode 100755 index 0000000..cf18ab8 --- /dev/null +++ b/format.sh @@ -0,0 +1,8 @@ +#!/bin/sh +cd mdebase +./format.sh +cd .. + +cd mdelibs +./format.sh +cd ..