Added a clang-format file to the root
Copy of my personal Dotfiles but this helps in case anyone else wants to contribute.
This commit is contained in:
30
.clang-format
Normal file
30
.clang-format
Normal file
@@ -0,0 +1,30 @@
|
||||
# .clang-format -*- mode: yaml; lexical-binding: t; -*-
|
||||
AccessModifierOffset: -2
|
||||
AlignAfterOpenBracket: Align
|
||||
AlignConsecutiveAssignments: true
|
||||
AlignConsecutiveBitFields: true
|
||||
AlignConsecutiveMacros: true
|
||||
AlignEscapedNewlines: true
|
||||
AllowShortFunctionsOnASingleLine: false
|
||||
AllowShortLambdasOnASingleLine: false
|
||||
AllowShortLoopsOnASingleLine: false
|
||||
AlwaysBreakTemplateDeclarations: Yes
|
||||
BasedOnStyle: LLVM
|
||||
BreakBeforeBraces: Custom
|
||||
BraceWrapping:
|
||||
AfterEnum: true
|
||||
AfterStruct: true
|
||||
AfterFunction: true
|
||||
AfterNamespace: true
|
||||
AfterClass: true
|
||||
AfterUnion: true
|
||||
AfterControlStatement: true
|
||||
AfterExternBlock: true
|
||||
BeforeLambdaBody: true
|
||||
BeforeCatch: true
|
||||
BeforeElse: true
|
||||
SplitEmptyFunction: true
|
||||
IndentBraces: false
|
||||
ColumnLimit: 80
|
||||
IndentWidth: 2
|
||||
NamespaceIndentation: All
|
||||
Reference in New Issue
Block a user