mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Approximate .clang-format for the C++ style used
This commit is contained in:
parent
fb8137dfed
commit
7291e12226
31
.clang-format
Normal file
31
.clang-format
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
# 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
|
||||||
|
# as the opening part.
|
||||||
|
|
||||||
|
Language: Cpp
|
||||||
|
BasedOnStyle: LLVM
|
||||||
|
AlignEscapedNewlinesLeft: true
|
||||||
|
AlwaysBreakAfterReturnType: None
|
||||||
|
BinPackArguments: false
|
||||||
|
BinPackParameters: false
|
||||||
|
BreakBeforeBinaryOperators: All
|
||||||
|
BreakBeforeBraces: Allman
|
||||||
|
ColumnLimit: 120
|
||||||
|
ContinuationIndentWidth: 4
|
||||||
|
IndentWidth: 4
|
||||||
|
KeepEmptyLinesAtTheStartOfBlocks: false
|
||||||
|
MaxEmptyLinesToKeep: 2
|
||||||
|
PenaltyBreakBeforeFirstCallParameter: 2000
|
||||||
|
SpaceAfterCStyleCast: true
|
||||||
|
SpaceBeforeParens: ControlStatements
|
||||||
|
TabWidth: 4
|
||||||
|
|
||||||
|
# Local Variables:
|
||||||
|
# mode: yaml
|
||||||
|
# End:
|
Loading…
Reference in New Issue
Block a user