Last active
August 20, 2018 13:26
-
-
Save CoolOppo/aec3bd14b16c43be41b020694881f5d5 to your computer and use it in GitHub Desktop.
My clang-format style
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 | |
AccessModifierOffset: -4 | |
AlignAfterOpenBracket: Align | |
AlignConsecutiveAssignments: true | |
AlignConsecutiveDeclarations: false | |
AlignEscapedNewlines: Left | |
AlignOperands: true | |
AlignTrailingComments: true | |
AllowAllParametersOfDeclarationOnNextLine: true | |
AllowShortBlocksOnASingleLine: false | |
AllowShortCaseLabelsOnASingleLine: false | |
AllowShortFunctionsOnASingleLine: All | |
AllowShortIfStatementsOnASingleLine: false | |
AllowShortLoopsOnASingleLine: false | |
AlwaysBreakAfterReturnType: None | |
AlwaysBreakBeforeMultilineStrings: true | |
AlwaysBreakTemplateDeclarations: No | |
BinPackArguments: true | |
BinPackParameters: true | |
BreakBeforeBraces: Custom | |
BraceWrapping: | |
AfterClass: true | |
AfterControlStatement: false | |
AfterEnum: true | |
AfterFunction: false | |
AfterNamespace: true | |
AfterObjCDeclaration: false | |
AfterStruct: true | |
AfterUnion: true | |
AfterExternBlock: true | |
BeforeCatch: false | |
BeforeElse: false | |
IndentBraces: false | |
SplitEmptyFunction: false | |
SplitEmptyRecord: false | |
SplitEmptyNamespace: false | |
BreakBeforeBinaryOperators: None | |
BreakBeforeInheritanceComma: false | |
BreakBeforeTernaryOperators: false | |
BreakConstructorInitializers: AfterColon | |
BreakInheritanceList: AfterColon | |
BreakStringLiterals: true | |
ColumnLimit: 160 | |
CommentPragmas: '^\@' | |
CompactNamespaces: false | |
ConstructorInitializerAllOnOneLineOrOnePerLine: false | |
ConstructorInitializerIndentWidth: 4 | |
ContinuationIndentWidth: 4 | |
Cpp11BracedListStyle: true | |
DerivePointerAlignment: true | |
DisableFormat: false | |
ExperimentalAutoDetectBinPacking: false | |
FixNamespaceComments: true | |
ForEachMacros: | |
- foreach | |
- Q_FOREACH | |
- BOOST_FOREACH | |
IncludeBlocks: Regroup | |
IncludeCategories: | |
- Regex: '.*\.generated\.' | |
Priority: 2 | |
- Regex: '.*' | |
Priority: 1 | |
IncludeIsMainRegex: '([-_](test|unittest))?$' | |
IndentCaseLabels: true | |
IndentPPDirectives: None | |
IndentWidth: 4 | |
IndentWrappedFunctionNames: true | |
KeepEmptyLinesAtTheStartOfBlocks: false | |
MacroBlockBegin: '' | |
MacroBlockEnd: '' | |
MaxEmptyLinesToKeep: 1 | |
NamespaceIndentation: None | |
PenaltyBreakAssignment: 2 | |
PenaltyBreakBeforeFirstCallParameter: 1 | |
PenaltyBreakComment: 300 | |
PenaltyBreakFirstLessLess: 120 | |
PenaltyBreakString: 1000 | |
PenaltyExcessCharacter: 1000000 | |
PenaltyReturnTypeOnItsOwnLine: 200 | |
PointerAlignment: Left | |
ReflowComments: true | |
SortIncludes: false | |
SortUsingDeclarations: true | |
SpaceAfterCStyleCast: false | |
SpaceAfterTemplateKeyword: true | |
SpaceBeforeAssignmentOperators: true | |
SpaceBeforeParens: ControlStatements | |
SpaceInEmptyParentheses: false | |
SpacesBeforeTrailingComments: 2 | |
SpacesInAngles: false | |
SpacesInContainerLiterals: true | |
SpacesInCStyleCastParentheses: false | |
SpacesInParentheses: false | |
SpacesInSquareBrackets: false | |
Standard: Cpp11 | |
TabWidth: 4 | |
UseTab: Always |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment