You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by pn...@apache.org on 2023/05/06 09:26:38 UTC
[celix] 03/03: Update clang-format file (#508)
This is an automated email from the ASF dual-hosted git repository.
pnoltes pushed a commit to branch feature/coding_conventions
in repository https://gitbox.apache.org/repos/asf/celix.git
commit 88ea1270a01085b44e7dc5463a8de1b8d95304a3
Author: Pepijn Noltes <pe...@gmail.com>
AuthorDate: Sat May 6 11:26:17 2023 +0200
Update clang-format file (#508)
---
.clang-format | 34 ++++++++++++++++++----------------
1 file changed, 18 insertions(+), 16 deletions(-)
diff --git a/.clang-format b/.clang-format
index 6fde8dd5..f13cc037 100644
--- a/.clang-format
+++ b/.clang-format
@@ -1,25 +1,27 @@
-Language: Cpp
BasedOnStyle: LLVM
-AlignAfterOpenBracket: Align
-AllowShortFunctionsOnASingleLine: Empty
-AllowShortIfStatementsOnASingleLine: Never
-AllowShortLoopsOnASingleLine: false
-AlwaysBreakAfterReturnType: TopLevelDefinitions
+IndentWidth: 4
+AllowShortIfStatementsOnASingleLine: false
+AlwaysBreakTemplateDeclarations: Yes
+BinPackArguments: false
BinPackParameters: false
BreakBeforeBraces: Attach
-BreakConstructorInitializers: BeforeColon
ColumnLimit: 120
-ContinuationIndentWidth: 4
-Cpp11BracedListStyle: false
-IndentCaseLabels: false
-IndentWidth: 4
+ConstructorInitializerIndentWidth: 4
+Cpp11BracedListStyle: true
+DerivePointerAlignment: false
+IncludeBlocks: Regroup
KeepEmptyLinesAtTheStartOfBlocks: false
-MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
-PointerAlignment: Left
+PointerAlignment: Right
+ReflowComments: true
SortIncludes: false
-SpaceAfterCStyleCast: true
+SpaceAfterCStyleCast: false
+SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
+SpaceInEmptyParentheses: false
+SpacesBeforeTrailingComments: 1
+SpacesInAngles: Never
+SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
-TabWidth: 4
-UseTab: Never
\ No newline at end of file
+SpacesInSquareBrackets: false
+AlignEscapedNewlines: Right