Last active
February 12, 2021 01:49
-
-
Save byBretema/3137b9adb4e3aa28a64f8e3253286755 to your computer and use it in GitHub Desktop.
My preferences on CPP formatting
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: '0' | |
AlignAfterOpenBracket: AlwaysBreak | |
AlignConsecutiveMacros: 'true' | |
AlignConsecutiveAssignments: 'true' | |
AlignConsecutiveDeclarations: 'true' | |
AlignEscapedNewlines: Left | |
AlignOperands: 'true' | |
AlignTrailingComments: 'true' | |
AllowAllArgumentsOnNextLine: 'false' | |
AllowAllConstructorInitializersOnNextLine: 'false' | |
AllowAllParametersOfDeclarationOnNextLine: 'false' | |
AllowShortBlocksOnASingleLine: 'true' | |
AllowShortCaseLabelsOnASingleLine: 'true' | |
AllowShortFunctionsOnASingleLine: All | |
AllowShortIfStatementsOnASingleLine: Always | |
AllowShortLambdasOnASingleLine: All | |
AllowShortLoopsOnASingleLine: 'true' | |
AlwaysBreakAfterDefinitionReturnType: None | |
AlwaysBreakAfterReturnType: None | |
AlwaysBreakBeforeMultilineStrings: 'false' | |
AlwaysBreakTemplateDeclarations: 'Yes' | |
BinPackArguments: 'false' | |
BinPackParameters: 'false' | |
BreakAfterJavaFieldAnnotations: 'false' | |
BreakBeforeBinaryOperators: NonAssignment | |
BreakBeforeBraces: Custom | |
BreakBeforeTernaryOperators: 'true' | |
BreakConstructorInitializers: AfterColon | |
BreakInheritanceList: AfterColon | |
BreakStringLiterals: 'true' | |
ColumnLimit: '120' | |
CompactNamespaces: 'true' | |
ConstructorInitializerAllOnOneLineOrOnePerLine: 'true' | |
ContinuationIndentWidth: '2' | |
Cpp11BracedListStyle: 'false' | |
DerivePointerAlignment: 'false' | |
DisableFormat: 'false' | |
ExperimentalAutoDetectBinPacking: 'false' | |
FixNamespaceComments: 'true' | |
IncludeBlocks: Regroup | |
IndentCaseLabels: 'true' | |
IndentPPDirectives: AfterHash | |
IndentWidth: '2' | |
IndentWrappedFunctionNames: 'true' | |
JavaScriptQuotes: Single | |
JavaScriptWrapImports: 'true' | |
KeepEmptyLinesAtTheStartOfBlocks: 'false' | |
Language: Cpp | |
NamespaceIndentation: All | |
PointerAlignment: Right | |
ReflowComments: 'true' | |
SortIncludes: 'true' | |
SortUsingDeclarations: 'true' | |
SpaceAfterCStyleCast: 'false' | |
SpaceAfterLogicalNot: 'false' | |
SpaceAfterTemplateKeyword: 'false' | |
SpaceBeforeAssignmentOperators: 'true' | |
SpaceBeforeCpp11BracedList: 'true' | |
SpaceBeforeCtorInitializerColon: 'true' | |
SpaceBeforeInheritanceColon: 'true' | |
SpaceBeforeParens: ControlStatements | |
SpaceBeforeRangeBasedForLoopColon: 'true' | |
SpaceInEmptyParentheses: 'false' | |
SpacesBeforeTrailingComments: '2' | |
SpacesInAngles: 'false' | |
SpacesInCStyleCastParentheses: 'false' | |
SpacesInContainerLiterals: 'true' | |
SpacesInParentheses: 'false' | |
SpacesInSquareBrackets: 'false' | |
Standard: Cpp11 | |
TabWidth: '2' | |
UseTab: Never | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment