Last active
December 11, 2020 22:50
-
-
Save marcizhu/f4d901046b55f61e294a2240668da21d to your computer and use it in GitHub Desktop.
[Clang format config file] Configuration file for clang-format #clangformat #config
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
BasedOnStyle: WebKit | |
AccessModifierOffset: -4 | |
AlignAfterOpenBracket: DontAlign | |
AlignConsecutiveAssignments: false | |
AlignConsecutiveBitFields: true | |
AlignConsecutiveMacros: true | |
AlignEscapedNewlines: Left | |
AlignTrailingComments: false | |
AllowShortBlocksOnASingleLine: Always | |
AllowShortCaseLabelsOnASingleLine: true | |
AllowShortFunctionsOnASingleLine: All | |
AllowShortIfStatementsOnASingleLine: WithoutElse | |
AllowShortLambdasOnASingleLine: All | |
AllowShortLoopsOnASingleLine: false | |
AlwaysBreakAfterReturnType: None | |
AlwaysBreakBeforeMultilineStrings: false | |
AlwaysBreakTemplateDeclarations: Yes | |
BinPackArguments: false | |
BinPackParameters: false | |
#BitFieldColonSpacing: Both | |
BraceWrapping: | |
AfterCaseLabel: true | |
AfterClass: true | |
AfterControlStatement: MultiLine | |
AfterFunction: true | |
AfterNamespace: true | |
AfterStruct: true | |
AfterUnion: true | |
AfterExternBlock: true | |
BeforeCatch: false | |
BeforeElse: true | |
BeforeWhile: false | |
SplitEmptyFunction: false | |
SplitEmptyRecord: true | |
SplitEmptyNamespace: true | |
BreakBeforeBinaryOperators: None | |
BreakBeforeBraces: Allman | |
BreakBeforeTernaryOperators: false | |
BreakConstructorInitializers: BeforeColon | |
ColumnLimit: 0 | |
CompactNamespaces: false | |
ConstructorInitializerAllOnOneLineOrOnePerLine: true | |
ConstructorInitializerIndentWidth: 4 | |
ContinuationIndentWidth: 4 | |
Cpp11BracedListStyle: true | |
DisableFormat: false | |
FixNamespaceComments: false | |
#IncludeBlocks: Regroup | |
#IncludeCategories: ... | |
IndentCaseLabels: true | |
IndentCaseLabels: true | |
#IndentExternBlock: AfterExternBlock | |
IndentPPDirectives: BeforeHash | |
IndentWidth: 4 | |
IndentWrappedFunctionNames: false | |
KeepEmptyLinesAtTheStartOfBlocks: false | |
Language: Cpp | |
MaxEmptyLinesToKeep: 1 | |
NamespaceIndentation: All | |
PointerAlignment: Left | |
ReflowComments: true | |
SortIncludes: false #true | |
SortUsingDeclarations: true | |
SpaceAfterCStyleCast: false | |
SpaceAfterLogicalNot: false | |
SpaceAfterTemplateKeyword: false | |
SpaceBeforeCpp11BracedList: true | |
SpaceBeforeCtorInitializerColon: true | |
SpaceBeforeInheritanceColon: true | |
SpaceBeforeParens: Never | |
SpaceBeforeRangeBasedForLoopColon: true | |
SpaceBeforeSquareBrackets: false | |
SpaceInEmptyBlock: false | |
SpaceInEmptyParentheses: false | |
SpacesBeforeTrailingComments: 1 | |
SpacesInAngles: false | |
SpacesInCStyleCastParentheses: false | |
SpacesInConditionalStatement: false | |
SpacesInParentheses: false | |
SpacesInSquareBrackets: false | |
UseCRLF: false | |
UseTab: ForContinuationAndIndentation | |
TabWidth: 4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment