Index: c++/clang-format/clang-format-eyeo |
=================================================================== |
new file mode 100644 |
--- /dev/null |
+++ b/c++/clang-format/clang-format-eyeo |
@@ -0,0 +1,55 @@ |
+--- |
+Language: Cpp |
+AccessModifierOffset: -2 |
sergei
2017/09/08 15:10:44
I think we should add
AlignAfterOpenBracket: DontA
Eric
2017/09/08 15:48:34
The Mozilla style guide uses examples where the va
|
+AlignEscapedNewlinesLeft: false |
+AlignTrailingComments: true |
+AllowAllParametersOfDeclarationOnNextLine: false |
+AllowShortBlocksOnASingleLine: false |
+AllowShortFunctionsOnASingleLine: All |
+AllowShortIfStatementsOnASingleLine: false |
+AllowShortLoopsOnASingleLine: false |
+AlwaysBreakBeforeMultilineStrings: false |
+AlwaysBreakTemplateDeclarations: true |
+BinPackParameters: true |
+BreakBeforeBinaryOperators: false |
+BreakBeforeBraces: Allman |
+BreakBeforeTernaryOperators: false |
+BreakConstructorInitializersBeforeComma: false |
+ColumnLimit: 0 |
hub
2017/09/06 14:42:42
Should we have a column limit like 80 ? it is loos
Eric
2017/09/08 15:48:34
I tried column limits before, and it wasn't practi
hub
2017/09/08 16:02:45
this actually unwrap manually wrapped lines. So ma
|
+CommentPragmas: '^ IWYU pragma:' |
+ConstructorInitializerAllOnOneLineOrOnePerLine: true |
+ConstructorInitializerIndentWidth: 2 |
+ContinuationIndentWidth: 2 |
+Cpp11BracedListStyle: true |
+DerivePointerAlignment: false |
+DisableFormat: false |
+ExperimentalAutoDetectBinPacking: false |
+ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ] |
+IndentCaseLabels: false |
hub
2017/09/06 14:56:51
This should be "true"
False turns
```
switch ()
Eric
2017/09/08 15:48:34
I changed this one to conform to the Mozilla style
|
+IndentFunctionDeclarationAfterType: false |
+IndentWidth: 2 |
+IndentWrappedFunctionNames: false |
+KeepEmptyLinesAtTheStartOfBlocks: false |
+MaxEmptyLinesToKeep: 1 |
+NamespaceIndentation: All |
+PenaltyBreakBeforeFirstCallParameter: 19 |
+PenaltyBreakComment: 300 |
+PenaltyBreakFirstLessLess: 120 |
+PenaltyBreakString: 1000 |
+PenaltyExcessCharacter: 1000000 |
+PenaltyReturnTypeOnItsOwnLine: 200 |
+PointerAlignment: Left |
+SpaceBeforeAssignmentOperators: true |
+SpaceBeforeParens: ControlStatements |
+SpaceInEmptyParentheses: false |
+SpacesBeforeTrailingComments: 1 |
+SpacesInAngles: false |
+SpacesInContainerLiterals: true |
+SpacesInCStyleCastParentheses: false |
+SpacesInParentheses: false |
+SpacesInSquareBrackets: false |
+Standard: Cpp11 |
+TabWidth: 8 |
+UseTab: Never |
+... |
+ |