Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: c++/clang-format/clang-format-eyeo

Issue 29537634: Noissue - clang-format configuration file for C++
Patch Set: Created Sept. 6, 2017, 1:44 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « c++/clang-format/README.md ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
+...
+
« no previous file with comments | « c++/clang-format/README.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld