diff options
author | Jarryd Beck <jarro.2783@gmail.com> | 2022-07-11 00:47:35 +0300 |
---|---|---|
committer | Jarryd Beck <jarro.2783@gmail.com> | 2022-07-11 13:40:51 +0300 |
commit | 30d97369f2694212cae5e41a6a06c8c0ddc4ced3 (patch) | |
tree | de0128de23e35db8c6322841f757ae3dba03b295 | |
parent | fbd79df66bde4f070ff488d8716870667736600f (diff) |
Fixes #341. Add a clang-format file
-rw-r--r-- | .clang-format | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..30146cf --- /dev/null +++ b/.clang-format @@ -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 |