1# Formatting approximately used in Solidity's C++
2#
3# See https://clang.llvm.org/docs/ClangFormatStyleOptions.html
4# For an online formatter to test settings, see
5# https://zed0.co.uk/clang-format-configurator/
6# Note that clang-format cannot express the style that closing parentheses
7# behave similar to closing curly braces in a multi-line setting in that
8# they have to be on a line of their own at the same indentation level
9# as the opening part (aka "dangling parenthesis", see https://reviews.llvm.org/D33029).
10
11Language: Cpp
12BasedOnStyle: LLVM
13AccessModifierOffset: -4
14AlignAfterOpenBracket: AlwaysBreak
15AlignEscapedNewlinesLeft: true
16AlwaysBreakAfterReturnType: None
17AlwaysBreakTemplateDeclarations: Yes
18BinPackArguments: false
19BinPackParameters: false
20BreakBeforeBinaryOperators: All
21BreakBeforeBraces: Allman
22ColumnLimit: 120
23ContinuationIndentWidth: 4
24FixNamespaceComments: false
25IndentWidth: 4
26KeepEmptyLinesAtTheStartOfBlocks: false
27MaxEmptyLinesToKeep: 2
28PenaltyBreakBeforeFirstCallParameter: 2000
29PointerAlignment: Left
30SpaceAfterCStyleCast: true
31SpaceAfterTemplateKeyword: false
32SpaceBeforeCtorInitializerColon: false
33SpaceBeforeInheritanceColon: false
34SpaceBeforeParens: ControlStatements
35SpaceBeforeRangeBasedForLoopColon: false
36TabWidth: 4
37UseTab: Always
38
39# Local Variables:
40# mode: yaml
41# End:
42