Last active
April 8, 2019 03:41
-
-
Save degski/dc6fe89cd71cab12920f05daf25c6aff to your computer and use it in GitHub Desktop.
Clang Format for C++
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: LLVM | |
AccessModifierOffset: 0 | |
AlignConsecutiveAssignments: true | |
AlignConsecutiveDeclarations: false | |
AlignEscapedNewlines: Right | |
AlignOperands: true | |
AlignTrailingComments: true | |
AllowShortCaseLabelsOnASingleLine: true | |
AllowShortFunctionsOnASingleLine: true | |
AlwaysBreakTemplateDeclarations: true | |
BreakBeforeBraces: Custom | |
BraceWrapping: | |
AfterClass: false | |
AfterControlStatement: false | |
AfterEnum: false | |
AfterFunction: false | |
AfterNamespace: false | |
AfterStruct: false | |
AfterUnion: false | |
AfterExternBlock: false | |
BeforeCatch: true | |
BeforeElse: true | |
SplitEmptyFunction: false | |
BreakConstructorInitializers: AfterColon | |
ColumnLimit: 132 | |
Cpp11BracedListStyle: false | |
IndentCaseLabels: true | |
IndentPPDirectives: AfterHash | |
IndentWidth: 4 | |
KeepEmptyLinesAtTheStartOfBlocks: true | |
MaxEmptyLinesToKeep: 1 | |
NamespaceIndentation: None | |
PointerAlignment: Middle | |
ReflowComments: true | |
SortIncludes: true | |
SpaceAfterCStyleCast: true | |
SpaceAfterTemplateKeyword: false | |
SpaceBeforeAssignmentOperators: true | |
# SpaceBeforeCpp11BracedList: true | |
# SpaceBeforeCtorInitializerColon: true | |
SpaceBeforeParens: Always | |
# SpaceBeforeRangeBasedForLoopColon: true | |
SpaceInEmptyParentheses: true | |
SpacesBeforeTrailingComments: 1 | |
SpacesInAngles: false | |
SpacesInCStyleCastParentheses: true | |
SpacesInContainerLiterals: true | |
SpacesInParentheses: true | |
SpacesInSquareBrackets: true | |
Standard: Cpp11 | |
TabWidth: 4 | |
UseTab: Never | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment