1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-25 02:57:45 +00:00

Add clang-format config

This commit is contained in:
Ay'yaruq Dotharl 2017-12-07 17:39:06 +11:00
parent d84d3be978
commit 92594cdc1c
No known key found for this signature in database
GPG key ID: 79D2BF33B8AD2918

42
.clang-format Normal file
View file

@ -0,0 +1,42 @@
---
Language: Cpp
BasedOnStyle: LLVM
AccessModifierOffset: -3
AllowShortFunctionsOnASingleLine: InlineOnly
AlwaysBreakTemplateDeclarations: true
BraceWrapping:
AfterClass: true
AfterControlStatement: true
AfterEnum: true
AfterFunction: true
AfterNamespace: false
AfterStruct: true
AfterUnion: true
AfterExternBlock: false
BeforeCatch: true
BeforeElse: true
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Custom
BreakBeforeInheritanceComma: true
BreakBeforeTernaryOperators: false
BreakConstructorInitializers: AfterColon
BreakStringLiterals: false
ColumnLimit: 120
ConstructorInitializerAllOnOneLineOrOnePerLine: true
Cpp11BracedListStyle: false
FixNamespaceComments: true
IndentWidth: 3
KeepEmptyLinesAtTheStartOfBlocks: true
NamespaceIndentation: Inner
PointerAlignment: Left
SortUsingDeclarations: false
SpaceAfterTemplateKeyword: false
SpaceBeforeParens: Never
SpacesInAngles: true
SpacesInParentheses: true
Standard: Cpp11
UseTab: Never