solidity/.clang-format

42 lines
1.3 KiB
Plaintext
Raw Normal View History

# Formatting approximately used in Solidity's C++
#
# See https://clang.llvm.org/docs/ClangFormatStyleOptions.html
# For an online formatter to test settings, see
# https://zed0.co.uk/clang-format-configurator/
# Note that clang-format cannot express the style that closing parentheses
# behave similar to closing curly braces in a multi-line setting in that
# they have to be on a line of their own at the same indentation level
2020-03-22 21:23:29 +00:00
# as the opening part (aka "dangling parenthesis", see https://reviews.llvm.org/D33029).
Language: Cpp
BasedOnStyle: LLVM
2020-03-22 21:23:29 +00:00
AccessModifierOffset: -4
AlignAfterOpenBracket: AlwaysBreak
AlignEscapedNewlines: Left
AlwaysBreakAfterReturnType: None
2020-03-22 21:23:29 +00:00
AlwaysBreakTemplateDeclarations: Yes
BinPackArguments: false
BinPackParameters: false
BreakBeforeBinaryOperators: All
BreakBeforeBraces: Allman
ColumnLimit: 120
ContinuationIndentWidth: 4
2020-03-22 21:23:29 +00:00
FixNamespaceComments: false
IndentWidth: 4
KeepEmptyLinesAtTheStartOfBlocks: false
MaxEmptyLinesToKeep: 2
PenaltyBreakBeforeFirstCallParameter: 2000
2020-03-22 21:23:29 +00:00
PointerAlignment: Left
SpaceAfterCStyleCast: true
2020-03-22 21:23:29 +00:00
SpaceAfterTemplateKeyword: false
SpaceBeforeCtorInitializerColon: false
SpaceBeforeInheritanceColon: false
SpaceBeforeParens: ControlStatements
2020-03-22 21:23:29 +00:00
SpaceBeforeRangeBasedForLoopColon: false
TabWidth: 4
2020-03-22 21:23:29 +00:00
UseTab: Always
# Local Variables:
# mode: yaml
# End: