commit d0f34f7c51580768cc71c64c66f11d0efe3e4831
parent f93e306923ec551c321a52bc8e702c9ea75d68c4
Author: Friedel Schon <[email protected]>
Date: Mon, 24 Apr 2023 11:09:36 +0200
adding .clang-format for contributers
Diffstat:
A | .clang-format | | | 49 | +++++++++++++++++++++++++++++++++++++++++++++++++ |
1 file changed, 49 insertions(+), 0 deletions(-)
diff --git a/.clang-format b/.clang-format
@@ -0,0 +1,48 @@
+{
+ "AlignAfterOpenBracket": "Align",
+ "AlignConsecutiveAssignments": true,
+ "AlignConsecutiveDeclarations": true,
+ "AlignConsecutiveMacros": true,
+ "AlignEscapedNewlines": true,
+ "AlignOperands": "AlignAfterOperator",
+ "AllowShortBlocksOnASingleLine": true,
+ "AllowShortIfStatementsOnASingleLine": true,
+ "AllowShortLoopsOnASingleLine": true,
+ "BreakBeforeBraces": "Attach",
+ "BreakBeforeTernaryOperators": true,
+ "BreakConstructorInitializers": "BeforeComma",
+ "BreakInheritanceList": "BeforeComma",
+ "BreakStringLiterals": false,
+ "ColumnLimit": 0,
+ "Cpp11BracedListStyle": false,
+ "FixNamespaceComments": true,
+ "IncludeBlocks": "Regroup",
+ "IndentCaseLabels": true,
+ "IndentPPDirectives": "AfterHash",
+ "IndentWidth": 4,
+ "MaxEmptyLinesToKeep": 2,
+ "NamespaceIndentation": "All",
+ "PointerAlignment": "Left",
+ "SortIncludes": true,
+ "SortUsingDeclarations": true,
+ "SpaceAfterCStyleCast": true,
+ "SpaceAfterLogicalNot": false,
+ "SpaceAfterTemplateKeyword": false,
+ "SpaceBeforeAssignmentOperators": true,
+ "SpaceBeforeCpp11BracedList": false,
+ "SpaceBeforeCtorInitializerColon": true,
+ "SpaceBeforeInheritanceColon": true,
+ "SpaceBeforeRangeBasedForLoopColon": true,
+ "SpaceBeforeSquareBrackets": false,
+ "SpaceInEmptyBlock": false,
+ "SpaceInEmptyParentheses": false,
+ "SpacesBeforeTrailingComments": 4,
+ "SpacesInAngles": false,
+ "SpacesInCStyleCastParentheses": false,
+ "SpacesInConditionalStatement": false,
+ "SpacesInContainerLiterals": false,
+ "SpacesInParentheses": false,
+ "SpacesInSquareBrackets": false,
+ "TabWidth": 4,
+ "UseTab": "ForIndentation"
+}
+\ No newline at end of file