summaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2024-07-11 13:17:03 +0200
committerFelix Morgner <felix.morgner@gmail.com>2024-07-11 16:03:04 +0200
commitf597be870eec6d04de6bed0effa7dd23bcb72bf8 (patch)
tree569ceeeef1bbf143b0d3a32ccf9a2fc716ff13e1 /.clang-format
downloadturns-f597be870eec6d04de6bed0effa7dd23bcb72bf8.tar.xz
turns-f597be870eec6d04de6bed0effa7dd23bcb72bf8.zip
initial commit
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format138
1 files changed, 138 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format
new file mode 100644
index 0000000..8d02964
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,138 @@
+---
+Language: Cpp
+
+AccessModifierOffset: -2
+
+AlignAfterOpenBracket: Align
+AlignArrayOfStructures: Left
+AlignConsecutiveAssignments: false
+AlignConsecutiveBitFields: true
+AlignConsecutiveDeclarations: false
+AlignEscapedNewlines: Right
+AlignOperands: true
+AlignTrailingComments:
+ Kind: Always
+
+AllowAllParametersOfDeclarationOnNextLine: false
+AllowAllArgumentsOnNextLine: false
+AllowShortBlocksOnASingleLine: false
+AllowShortCaseLabelsOnASingleLine: false
+AllowShortFunctionsOnASingleLine: None
+AllowShortIfStatementsOnASingleLine: false
+AllowShortLambdasOnASingleLine: Inline
+AllowShortLoopsOnASingleLine: false
+
+AlwaysBreakAfterDefinitionReturnType: None
+AlwaysBreakAfterReturnType: None
+AlwaysBreakTemplateDeclarations: Yes
+
+BinPackArguments: false
+BinPackParameters: false
+
+BraceWrapping:
+ AfterCaseLabel: true
+ AfterClass: true
+ AfterControlStatement: Always
+ AfterEnum: true
+ AfterFunction: true
+ AfterNamespace: true
+ AfterStruct: true
+ AfterUnion: true
+ AfterExternBlock: true
+ BeforeCatch: true
+ BeforeElse: true
+ BeforeWhile: false
+ IndentBraces: false
+
+BreakBeforeBraces: Custom
+BreakBeforeConceptDeclarations: Always
+BreakInheritanceList: AfterComma
+BreakBeforeInlineASMColon: Always
+BreakConstructorInitializers: BeforeComma
+BreakStringLiterals: true
+
+ColumnLimit: 144
+
+CompactNamespaces: false
+
+Cpp11BracedListStyle: true
+
+DerivePointerAlignment: false
+
+EmptyLineBeforeAccessModifier: Always
+
+FixNamespaceComments: true
+
+IncludeBlocks: Regroup
+IncludeCategories:
+ # Local Headers
+ - Regex: '"[A-za-z0-9._\/]+"'
+ Priority: 200
+ # Catch2 Headers
+ - Regex: '<catch2/.*\.hpp>'
+ Priority: 300
+ # STL Headers
+ - Regex: '<[A-za-z0-9_]+>'
+ Priority: 400
+ # General System Headers
+ - Regex: '<[A-za-z0-9._\/]+>'
+ Priority: 500
+
+
+IndentCaseLabels: false
+IndentPPDirectives: None
+IndentWidth: 2
+IndentRequiresClause: false
+
+InsertTrailingCommas: Wrapped
+
+IntegerLiteralSeparator:
+ Binary: 4
+ Decimal: 3
+ DecimalMinDigits: 5
+ Hex: 2
+ HexMinDigits: 6
+
+KeepEmptyLinesAtTheStartOfBlocks: true
+
+LambdaBodyIndentation: OuterScope
+
+MaxEmptyLinesToKeep: 1
+
+NamespaceIndentation: All
+
+PointerAlignment: Middle
+
+ReferenceAlignment: Middle
+
+ReflowComments: true
+
+RemoveSemicolon: true
+
+RequiresClausePosition: OwnLine
+RequiresExpressionIndentation: OuterScope
+
+ShortNamespaceLines: 0
+
+SortIncludes: true
+SortUsingDeclarations: true
+
+SpaceAfterCStyleCast: false
+SpaceAfterTemplateKeyword: false
+SpaceBeforeAssignmentOperators: true
+SpaceBeforeParens: ControlStatements
+SpaceInEmptyParentheses: false
+SpacesBeforeTrailingComments: 2
+SpacesInAngles: false
+SpacesInContainerLiterals: false
+SpacesInCStyleCastParentheses: false
+SpacesInParentheses: false
+SpacesInSquareBrackets: false
+
+Standard: Latest
+
+TabWidth: 2
+
+UseTab: Never
+
+...