From ff7c074779344224a87b6a43ed23580820791ce4 Mon Sep 17 00:00:00 2001 From: chuchihtung Date: Mon, 11 Nov 2024 21:32:44 +0800 Subject: [PATCH] add clang-format conf Signed-off-by: chuchihtung --- .clang-format | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..8d5ce05 --- /dev/null +++ b/.clang-format @@ -0,0 +1,15 @@ +--- +BasedOnStyle: Google +IndentWidth: 4 +ColumnLimit: 120 +--- +Language: Cpp +AccessModifierOffset: -4 +AllowShortIfStatementsOnASingleLine: Never +AlwaysBreakBeforeMultilineStrings: false +DerivePointerAlignment: false +IncludeBlocks: Preserve +IndentCaseBlocks: true +PackConstructorInitializers: CurrentLine +SpacesBeforeTrailingComments: 1 +---