mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Improved .clang_format
file.
This commit is contained in:
parent
d55bbd4aa5
commit
a7d6128a8e
@ -6,26 +6,35 @@
|
|||||||
# Note that clang-format cannot express the style that closing parentheses
|
# Note that clang-format cannot express the style that closing parentheses
|
||||||
# behave similar to closing curly braces in a multi-line setting in that
|
# 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
|
# they have to be on a line of their own at the same indentation level
|
||||||
# as the opening part.
|
# as the opening part (aka "dangling parenthesis", see https://reviews.llvm.org/D33029).
|
||||||
|
|
||||||
Language: Cpp
|
Language: Cpp
|
||||||
BasedOnStyle: LLVM
|
BasedOnStyle: LLVM
|
||||||
|
AccessModifierOffset: -4
|
||||||
|
AlignAfterOpenBracket: AlwaysBreak
|
||||||
AlignEscapedNewlinesLeft: true
|
AlignEscapedNewlinesLeft: true
|
||||||
AlwaysBreakAfterReturnType: None
|
AlwaysBreakAfterReturnType: None
|
||||||
|
AlwaysBreakTemplateDeclarations: Yes
|
||||||
BinPackArguments: false
|
BinPackArguments: false
|
||||||
BinPackParameters: false
|
BinPackParameters: false
|
||||||
BreakBeforeBinaryOperators: All
|
BreakBeforeBinaryOperators: All
|
||||||
BreakBeforeBraces: Allman
|
BreakBeforeBraces: Allman
|
||||||
ColumnLimit: 120
|
ColumnLimit: 120
|
||||||
ContinuationIndentWidth: 4
|
ContinuationIndentWidth: 4
|
||||||
|
FixNamespaceComments: false
|
||||||
IndentWidth: 4
|
IndentWidth: 4
|
||||||
KeepEmptyLinesAtTheStartOfBlocks: false
|
KeepEmptyLinesAtTheStartOfBlocks: false
|
||||||
MaxEmptyLinesToKeep: 2
|
MaxEmptyLinesToKeep: 2
|
||||||
PenaltyBreakBeforeFirstCallParameter: 2000
|
PenaltyBreakBeforeFirstCallParameter: 2000
|
||||||
|
PointerAlignment: Left
|
||||||
SpaceAfterCStyleCast: true
|
SpaceAfterCStyleCast: true
|
||||||
|
SpaceAfterTemplateKeyword: false
|
||||||
|
SpaceBeforeCtorInitializerColon: false
|
||||||
|
SpaceBeforeInheritanceColon: false
|
||||||
SpaceBeforeParens: ControlStatements
|
SpaceBeforeParens: ControlStatements
|
||||||
|
SpaceBeforeRangeBasedForLoopColon: false
|
||||||
TabWidth: 4
|
TabWidth: 4
|
||||||
UseTab: ForIndentation
|
UseTab: Always
|
||||||
|
|
||||||
# Local Variables:
|
# Local Variables:
|
||||||
# mode: yaml
|
# mode: yaml
|
||||||
|
@ -141,7 +141,7 @@ struct MeanSigma
|
|||||||
double const d = 0;
|
double const d = 0;
|
||||||
int i = 0;
|
int i = 0;
|
||||||
int j = 0;
|
int j = 0;
|
||||||
char* s;
|
char* s = nullptr;
|
||||||
MeanAndSigma ms meanAndSigma(std::vector<float> const& _v, Accuracy _a);
|
MeanAndSigma ms meanAndSigma(std::vector<float> const& _v, Accuracy _a);
|
||||||
Derived* x = dynamic_cast<Derived*>(base);
|
Derived* x = dynamic_cast<Derived*>(base);
|
||||||
for (auto i = x->begin(); i != x->end(); ++i) {}
|
for (auto i = x->begin(); i != x->end(); ++i) {}
|
||||||
|
Loading…
Reference in New Issue
Block a user