From c787dc00a39decb57c9000f58a7ffa908a993b5f Mon Sep 17 00:00:00 2001 From: yuanbo Date: Mon, 14 Feb 2022 14:17:22 +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 00000000..0983e957 --- /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 71a26d53..c4bddfca 100644 --- a/OAT.xml +++ b/OAT.xml @@ -70,6 +70,7 @@ Note:If the text contains special characters, please escape them according to th +