mirror of
https://github.com/overte-org/overte.git
synced 2025-04-14 18:06:57 +02:00
Add clang format specification
This commit is contained in:
parent
c4e672d6b8
commit
1f8bd50d2b
1 changed files with 39 additions and 0 deletions
39
.clang-format
Normal file
39
.clang-format
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
Language: Cpp
|
||||||
|
Standard: Cpp11
|
||||||
|
BasedOnStyle: "Chromium"
|
||||||
|
ColumnLimit: 128
|
||||||
|
IndentWidth: 4
|
||||||
|
UseTab: Never
|
||||||
|
|
||||||
|
BreakBeforeBraces: Custom
|
||||||
|
BraceWrapping:
|
||||||
|
AfterEnum: true
|
||||||
|
AfterClass: false
|
||||||
|
AfterControlStatement: false
|
||||||
|
AfterFunction: false
|
||||||
|
AfterNamespace: false
|
||||||
|
AfterStruct: false
|
||||||
|
AfterUnion: false
|
||||||
|
BeforeCatch: false
|
||||||
|
BeforeElse: false
|
||||||
|
SplitEmptyFunction: false
|
||||||
|
SplitEmptyNamespace: true
|
||||||
|
|
||||||
|
|
||||||
|
AccessModifierOffset: -4
|
||||||
|
AllowShortFunctionsOnASingleLine: InlineOnly
|
||||||
|
BreakConstructorInitializers: BeforeColon
|
||||||
|
BreakConstructorInitializersBeforeComma: true
|
||||||
|
IndentCaseLabels: true
|
||||||
|
ReflowComments: false
|
||||||
|
Cpp11BracedListStyle: false
|
||||||
|
ContinuationIndentWidth: 4
|
||||||
|
ConstructorInitializerAllOnOneLineOrOnePerLine: false
|
||||||
|
CompactNamespaces: true
|
||||||
|
SortIncludes: false
|
||||||
|
SpaceBeforeAssignmentOperators: true
|
||||||
|
SpaceBeforeParens: ControlStatements
|
||||||
|
|
||||||
|
PenaltyReturnTypeOnItsOwnLine: 1000
|
||||||
|
PenaltyBreakBeforeFirstCallParameter: 1000
|
||||||
|
|
Loading…
Reference in a new issue