Fixes #341. Add a clang-format file

This commit is contained in:
Jarryd Beck 2022-07-11 07:47:35 +10:00
parent fbd79df66b
commit 30d97369f2

19
.clang-format Normal file
View File

@ -0,0 +1,19 @@
---
Language: Cpp
BasedOnStyle: LLVM
AccessModifierOffset: 0
AlignConsecutiveAssignments: true
AlwaysBreakAfterReturnType: TopLevel
BreakBeforeBraces: Custom
BraceWrapping:
AfterEnum: true
AfterClass: true
AfterStruct: true
AfterFunction: true
AfterNamespace: true
AfterControlStatement: Always
BeforeElse: true
ConstructorInitializerIndentWidth: 2
ContinuationIndentWidth: 2
PenaltyReturnTypeOnItsOwnLine: 200
PointerAlignment: Left