Last active
May 18, 2022 11:14
-
-
Save Atari2/33055d05710d0fe9f447e07bacdf389a to your computer and use it in GitHub Desktop.
.clang-format personal style configuration (requires clang-format 14 or newer)
This file contains hidden or 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
AccessModifierOffset: 0 | |
AlignAfterOpenBracket: BlockIndent | |
AlignArrayOfStructures: Left | |
AlignConsecutiveAssignments: Consecutive | |
AlignConsecutiveBitFields: Consecutive | |
AlignConsecutiveDeclarations: None | |
AlignConsecutiveMacros: Consecutive | |
AlignEscapedNewlines: Right | |
AlignOperands: Align | |
AlignTrailingComments: true | |
AllowAllArgumentsOnNextLine: true | |
AllowAllParametersOfDeclarationOnNextLine: true | |
AllowShortBlocksOnASingleLine: Always | |
AllowShortEnumsOnASingleLine: true | |
AllowShortFunctionsOnASingleLine: Inline | |
AllowShortIfStatementsOnASingleLine: WithoutElse | |
AllowShortLambdasOnASingleLine: Inline | |
AllowShortLoopsOnASingleLine: true | |
AlwaysBreakAfterReturnType: None | |
AlwaysBreakBeforeMultilineStrings: false | |
AlwaysBreakTemplateDeclarations: Yes | |
BinPackArguments: true | |
BinPackParameters: true | |
BitFieldColonSpacing: Both | |
BreakBeforeBraces: Custom | |
BraceWrapping: | |
AfterCaseLabel: true | |
AfterClass: false | |
AfterControlStatement: Never | |
AfterEnum: false | |
AfterFunction: false | |
AfterNamespace: false | |
AfterStruct: false | |
AfterUnion: false | |
AfterExternBlock: true | |
BeforeCatch: false | |
BeforeElse: false | |
BeforeLambdaBody: false | |
BeforeWhile: false | |
IndentBraces: false | |
SplitEmptyFunction: false | |
SplitEmptyRecord: false | |
SplitEmptyNamespace: false | |
BreakBeforeBinaryOperators: None | |
BreakBeforeTernaryOperators: false | |
BreakConstructorInitializers: AfterColon | |
BreakInheritanceList: AfterColon | |
BreakStringLiterals: false | |
ColumnLimit: 120 | |
CompactNamespaces: false | |
ConstructorInitializerIndentWidth: 4 | |
ContinuationIndentWidth: 0 | |
Cpp11BracedListStyle: false | |
DeriveLineEnding: true | |
EmptyLineAfterAccessModifier: Leave | |
EmptyLineBeforeAccessModifier: Leave | |
FixNamespaceComments: true | |
IncludeBlocks: Regroup | |
IndentAccessModifiers: false | |
IndentCaseBlocks: true | |
IndentCaseLabels: true | |
IndentExternBlock: true | |
IndentGotoLabels: true | |
IndentPPDirectives: BeforeHash | |
IndentWidth: 4 | |
IndentWrappedFunctionNames: false | |
InsertTrailingCommas: None | |
KeepEmptyLinesAtTheStartOfBlocks: false | |
LambdaBodyIndentation: Signature | |
Language: Cpp | |
MaxEmptyLinesToKeep: 1 | |
NamespaceIndentation: Inner | |
PPIndentWidth: 4 | |
PackConstructorInitializers: BinPack | |
PointerAlignment: Left | |
QualifierAlignment: Custom | |
QualifierOrder: [ 'restrict', 'constexpr', 'static', 'inline', 'const', 'volatile', 'type' ] | |
ReferenceAlignment: Left | |
ReflowComments: false | |
SeparateDefinitionBlocks: Never | |
ShortNamespaceLines: 1 | |
SortIncludes: Never | |
SortUsingDeclarations: true | |
SpaceAfterCStyleCast: false | |
SpaceAfterLogicalNot: false | |
SpaceAfterTemplateKeyword: true | |
SpaceAroundPointerQualifiers: Default | |
SpaceBeforeAssignmentOperators: true | |
SpaceBeforeCaseColon: false | |
SpaceBeforeCpp11BracedList: false | |
SpaceBeforeCtorInitializerColon: true | |
SpaceBeforeParens: Custom | |
SpaceBeforeParensOptions: | |
AfterControlStatements: true | |
AfterFunctionDeclarationName: false | |
AfterFunctionDefinitionName: false | |
AfterOverloadedOperator: false | |
SpaceBeforeRangeBasedForLoopColon: true | |
SpaceBeforeSquareBrackets: false | |
SpaceInEmptyBlock: false | |
SpaceInEmptyParentheses: false | |
SpacesBeforeTrailingComments: 4 | |
SpacesInAngles: Never | |
SpacesInCStyleCastParentheses: false | |
SpacesInConditionalStatement: false | |
SpacesInContainerLiterals: true | |
SpacesInLineCommentPrefix: | |
Minimum: 1 | |
Maximum: 4 | |
SpacesInParentheses: false | |
SpacesInSquareBrackets: false | |
Standard: c++20 | |
TabWidth: 4 | |
UseTab: Never |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment