Created
January 30, 2017 17:39
-
-
Save ruipacheco/6df1eef336062ec7b9bf60d631c2d61e to your computer and use it in GitHub Desktop.
clang-format
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
Language: Cpp | |
# BasedOnStyle: Google | |
AccessModifierOffset: -1 | |
AlignAfterOpenBracket: true | |
AlignEscapedNewlinesLeft: true | |
AlignOperands: true | |
AlignTrailingComments: true | |
AllowAllParametersOfDeclarationOnNextLine: true | |
AllowShortBlocksOnASingleLine: false | |
AllowShortCaseLabelsOnASingleLine: false | |
AllowShortIfStatementsOnASingleLine: false | |
AllowShortLoopsOnASingleLine: false | |
AllowShortFunctionsOnASingleLine: All | |
AlwaysBreakAfterDefinitionReturnType: false | |
AlwaysBreakTemplateDeclarations: true | |
AlwaysBreakBeforeMultilineStrings: true | |
BreakBeforeBinaryOperators: None | |
BreakBeforeTernaryOperators: true | |
BreakConstructorInitializersBeforeComma: false | |
BinPackParameters: true | |
BinPackArguments: true | |
ColumnLimit: 120 | |
ConstructorInitializerAllOnOneLineOrOnePerLine: true | |
ConstructorInitializerIndentWidth: 4 | |
DerivePointerAlignment: true | |
ExperimentalAutoDetectBinPacking: false | |
IndentCaseLabels: true | |
IndentWrappedFunctionNames: false | |
IndentFunctionDeclarationAfterType: false | |
MaxEmptyLinesToKeep: 1 | |
KeepEmptyLinesAtTheStartOfBlocks: false | |
NamespaceIndentation: All | |
ObjCBlockIndentWidth: 2 | |
ObjCSpaceAfterProperty: false | |
ObjCSpaceBeforeProtocolList: false | |
PenaltyBreakBeforeFirstCallParameter: 1 | |
PenaltyBreakComment: 300 | |
PenaltyBreakString: 1000 | |
PenaltyBreakFirstLessLess: 120 | |
PenaltyExcessCharacter: 1000000 | |
PenaltyReturnTypeOnItsOwnLine: 200 | |
PointerAlignment: Left | |
SpacesBeforeTrailingComments: 2 | |
Cpp11BracedListStyle: true | |
Standard: Auto | |
IndentWidth: 2 | |
TabWidth: 8 | |
UseTab: Never | |
BreakBeforeBraces: Attach | |
SpacesInParentheses: false | |
SpacesInSquareBrackets: false | |
SpacesInAngles: false | |
SpaceInEmptyParentheses: false | |
SpacesInCStyleCastParentheses: false | |
SpaceAfterCStyleCast: false | |
SpacesInContainerLiterals: true | |
SpaceBeforeAssignmentOperators: true | |
ContinuationIndentWidth: 4 | |
CommentPragmas: '^ IWYU pragma:' | |
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ] | |
SpaceBeforeParens: ControlStatements | |
DisableFormat: false | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment