Last active
March 15, 2024 06:58
-
-
Save maddouri/f9239a941ea753bafeb658e330ae92ab to your computer and use it in GitHub Desktop.
Allman-style clang-format file initially generated using https://zed0.co.uk/clang-format-configurator/
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
--- | |
BasedOnStyle: Mozilla | |
AccessModifierOffset: '-4' | |
AlignAfterOpenBracket: Align | |
AlignConsecutiveAssignments: 'true' | |
AlignConsecutiveDeclarations: 'true' | |
AlignEscapedNewlinesLeft: 'false' | |
AlignOperands: 'true' | |
AlignTrailingComments: 'true' | |
AllowAllParametersOfDeclarationOnNextLine: 'true' | |
AllowShortBlocksOnASingleLine: 'true' | |
AllowShortCaseLabelsOnASingleLine: 'false' | |
AllowShortFunctionsOnASingleLine: All | |
AllowShortIfStatementsOnASingleLine: 'false' | |
AllowShortLoopsOnASingleLine: 'false' | |
AlwaysBreakAfterDefinitionReturnType: None | |
AlwaysBreakAfterReturnType: None | |
AlwaysBreakTemplateDeclarations: 'true' | |
BreakBeforeBinaryOperators: All | |
BreakBeforeBraces: Allman | |
BreakBeforeTernaryOperators: 'true' | |
BreakConstructorInitializersBeforeComma: 'true' | |
BreakStringLiterals: 'false' | |
ColumnLimit: '100' | |
ConstructorInitializerAllOnOneLineOrOnePerLine: 'false' | |
ConstructorInitializerIndentWidth: '0' | |
ContinuationIndentWidth: '4' | |
Cpp11BracedListStyle: 'false' | |
DerivePointerAlignment: 'false' | |
DisableFormat: 'false' | |
ExperimentalAutoDetectBinPacking: 'true' | |
IndentCaseLabels: 'true' | |
IndentWidth: '4' | |
IndentWrappedFunctionNames: 'false' | |
JavaScriptQuotes: Single | |
KeepEmptyLinesAtTheStartOfBlocks: 'false' | |
Language: Cpp | |
MaxEmptyLinesToKeep: '2' | |
NamespaceIndentation: None | |
ObjCBlockIndentWidth: '4' | |
ObjCSpaceAfterProperty: 'false' | |
ObjCSpaceBeforeProtocolList: 'false' | |
PointerAlignment: Left | |
ReflowComments: 'true' | |
SortIncludes: 'false' | |
SpaceAfterCStyleCast: 'true' | |
SpaceBeforeAssignmentOperators: 'true' | |
SpaceBeforeParens: ControlStatements | |
SpaceInEmptyParentheses: 'false' | |
SpacesBeforeTrailingComments: '2' | |
SpacesInAngles: 'false' | |
SpacesInCStyleCastParentheses: 'false' | |
SpacesInContainerLiterals: 'false' | |
SpacesInParentheses: 'false' | |
SpacesInSquareBrackets: 'false' | |
Standard: Cpp11 | |
TabWidth: '4' | |
UseTab: Never | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment