From 70ed389caa06d54d7eb309b85b352c3204259b43 Mon Sep 17 00:00:00 2001 From: yuanbo Date: Mon, 14 Feb 2022 14:16:31 +0800 Subject: [PATCH] feat: add clang-format file Signed-off-by: yuanbo --- .clang-format | 17 +++++++++++++++++ OAT.xml | 1 + 2 files changed, 18 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..0983e95 --- /dev/null +++ b/.clang-format @@ -0,0 +1,17 @@ +BasedOnStyle: Webkit +ColumnLimit: 120 +PointerAlignment: Right +AlignAfterOpenBracket: DontAlign +AlignTrailingComments: true +AlignConsecutiveMacros: Consecutive +AllowShortFunctionsOnASingleLine: None +IndentCaseLabels: true +BreakBeforeBinaryOperators: None +SpaceBeforeParens: ControlStatements +SpaceBeforeParens: ControlStatementsExceptControlMacros +SpacesInCStyleCastParentheses: false + +ForEachMacros: + - 'DLIST_FOR_EACH_ENTRY' + - 'DLIST_FOR_EACH_ENTRY_REVERSE' + - 'DLIST_FOR_EACH_ENTRY_SAFE' \ No newline at end of file diff --git a/OAT.xml b/OAT.xml index de6fa71..a5ade13 100644 --- a/OAT.xml +++ b/OAT.xml @@ -69,6 +69,7 @@ Note:If the text contains special characters, please escape them according to th +