OpenSTA/.clang-format

28 lines
807 B
Plaintext
Raw Normal View History

2020-04-19 19:20:47 +02:00
# This is "close" to correct but has a number of bugs that prevent
# using it on the source tree.
2019-12-29 18:55:07 +01:00
Language: Cpp
BasedOnStyle: Google
AlignOperands: false
2020-04-12 06:32:05 +02:00
AllowAllArgumentsOnNextLine: false
2019-12-29 18:55:07 +01:00
AllowAllConstructorInitializersOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
2020-04-12 06:32:05 +02:00
AllowShortIfStatementsOnASingleLine: Never
2020-04-19 19:20:47 +02:00
AllowShortLoopsOnASingleLine: false
2019-12-29 18:55:07 +01:00
AlwaysBreakAfterReturnType: TopLevel
2020-04-19 19:20:47 +02:00
BinPackArguments: false
2019-12-29 18:55:07 +01:00
# fails
BinPackParameters: false
BraceWrapping:
AfterClass: true
AfterStruct: true
AfterFunction: true
2020-04-12 06:32:05 +02:00
BeforeElse: true
2019-12-29 18:55:07 +01:00
BreakBeforeBraces: Custom
2020-04-12 06:32:05 +02:00
# fails if all initializers fit on one line
2019-12-29 18:55:07 +01:00
BreakConstructorInitializers: AfterColon
2020-04-19 19:20:47 +02:00
ColumnLimit: 0
2020-04-12 06:32:05 +02:00
# fails
ConstructorInitializerAllOnOneLineOrOnePerLine: false
2020-04-19 19:20:47 +02:00
ConstructorInitializerIndentWidth: 2
2020-04-12 06:32:05 +02:00
IncludeBlocks: Preserve