0b15dc94fa
Create .clang-format to describe the current C++ style used in Mosh. Mark one carefully-formatted array with `// clang-format off`. Also turn off clang-format in src/crypto/ocb_internal.cc, since it was imported almost wholesale from another project and is written in a style different from the rest of Mosh.
24 lines
569 B
YAML
24 lines
569 B
YAML
---
|
|
Language: Cpp
|
|
BasedOnStyle: Mozilla
|
|
ColumnLimit: 116
|
|
SpacesInParentheses: true
|
|
AlwaysBreakAfterReturnType: None
|
|
AlwaysBreakAfterDefinitionReturnType: None
|
|
SpaceBeforeCpp11BracedList: true
|
|
BreakBeforeBinaryOperators: All
|
|
Cpp11BracedListStyle: true
|
|
AllowShortBlocksOnASingleLine: Always
|
|
BreakBeforeBraces: Custom
|
|
BraceWrapping:
|
|
AfterClass: true
|
|
AfterControlStatement: Never
|
|
AfterFunction: true
|
|
AfterStruct: true
|
|
AfterEnum: true
|
|
SplitEmptyFunction: false
|
|
SplitEmptyRecord: false
|
|
SplitEmptyNamespace: false
|
|
BreakConstructorInitializers: BeforeColon
|
|
...
|