Files
OpenSTA/.clang-format
James Cherry 5a26929be5 clang format from PR #317
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2025-11-21 07:48:44 -07:00

32 lines
911 B
YAML

# This is "close" to correct but has a number of bugs that prevent
# using it on the source tree.
Language: Cpp
BasedOnStyle: Google
AccessModifierOffset: -2
AlignOperands: false
AllowAllArgumentsOnNextLine: false
AllowAllConstructorInitializersOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterReturnType: TopLevel
BinPackArguments: false
# fails
BinPackParameters: AlwaysOnePerLine
BraceWrapping:
AfterClass: true
AfterStruct: true
AfterFunction: true
BeforeElse: true
BreakBeforeBinaryOperators: NonAssignment
BreakBeforeBraces: Custom
# fails if all initializers fit on one line
BreakConstructorInitializers: AfterColon
ColumnLimit: 90
# fails
ConstructorInitializerIndentWidth: 2
IncludeBlocks: Preserve
PackConstructorInitializers: Never
PointerAlignment: Right
SortIncludes: Never