Created
July 28, 2015 03:38
-
-
Save masterl/39bf90dc683b2de79b42 to your computer and use it in GitHub Desktop.
Clang-format file I use
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: 0 | |
AlignAfterOpenBracket: true | |
#AlignConsecutiveAssignments: true | |
AlignEscapedNewlinesLeft: false | |
AlignOperands: true | |
AlignTrailingComments: true | |
AllowAllParametersOfDeclarationOnNextLine: false | |
AllowShortBlocksOnASingleLine: false | |
AllowShortCaseLabelsOnASingleLine: false | |
AllowShortFunctionsOnASingleLine: None | |
AllowShortIfStatementsOnASingleLine: false | |
AllowShortLoopsOnASingleLine: false | |
AlwaysBreakAfterDefinitionReturnType: false | |
AlwaysBreakTemplateDeclarations: true | |
AlwaysBreakBeforeMultilineStrings: false | |
BreakBeforeBinaryOperators: None | |
BreakBeforeTernaryOperators: true | |
BreakConstructorInitializersBeforeComma: true | |
BinPackParameters: false | |
BinPackArguments: false | |
ColumnLimit: 100 | |
ConstructorInitializerAllOnOneLineOrOnePerLine: false | |
ConstructorInitializerIndentWidth: 4 | |
DerivePointerAlignment: false | |
ExperimentalAutoDetectBinPacking: false | |
IndentCaseLabels: true | |
IndentWrappedFunctionNames: false | |
IndentFunctionDeclarationAfterType: false | |
MaxEmptyLinesToKeep: 1 | |
KeepEmptyLinesAtTheStartOfBlocks: false | |
NamespaceIndentation: All | |
PenaltyBreakBeforeFirstCallParameter: 19 | |
PenaltyBreakComment: 300 | |
PenaltyBreakString: 1000 | |
PenaltyBreakFirstLessLess: 120 | |
PenaltyExcessCharacter: 1000000 | |
PenaltyReturnTypeOnItsOwnLine: 60 | |
PointerAlignment: Right | |
SpacesBeforeTrailingComments: 1 | |
#Cpp11BracedListStyle: true | |
Standard: Cpp11 | |
IndentWidth: 4 | |
TabWidth: 4 | |
UseTab: Never | |
BreakBeforeBraces: Allman | |
SpacesInParentheses: true | |
SpacesInSquareBrackets: false | |
SpacesInAngles: true | |
SpaceInEmptyParentheses: false | |
SpacesInCStyleCastParentheses: false | |
SpaceAfterCStyleCast: false | |
SpacesInContainerLiterals: true | |
SpaceBeforeAssignmentOperators: true | |
ContinuationIndentWidth: 4 | |
CommentPragmas: '^ IWYU pragma:' | |
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ] | |
SpaceBeforeParens: Never | |
DisableFormat: false | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment