Last active
June 4, 2024 19:39
-
-
Save Raimo33/8bce7dfff5192bc9d2a64f85e57ae730 to your computer and use it in GitHub Desktop.
c++ 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: LLVM | |
IndentWidth: 4 | |
TabWidth: 4 | |
UseTab: Always | |
BreakBeforeBraces: Custom | |
AllowShortIfStatementsOnASingleLine: true | |
ColumnLimit: 0 | |
AccessModifierOffset: -2 | |
AlignAfterOpenBracket: Align | |
AlignConsecutiveAssignments: false | |
AlignConsecutiveDeclarations: true | |
AlignEscapedNewlines: Left | |
AlignOperands: false | |
AlignTrailingComments: true | |
AllowAllParametersOfDeclarationOnNextLine: true | |
AllowShortFunctionsOnASingleLine: All | |
AllowShortLoopsOnASingleLine: true | |
AlwaysBreakAfterDefinitionReturnType: None | |
AlwaysBreakBeforeMultilineStrings: false | |
AttributeMacros: [] | |
BinPackArguments: false | |
BinPackParameters: false | |
BraceWrapping: | |
AfterClass: true | |
AfterControlStatement: true | |
AfterEnum: true | |
AfterFunction: true | |
AfterNamespace: true | |
AfterObjCDeclaration: true | |
AfterStruct: true | |
AfterUnion: true | |
BeforeCatch: true | |
BeforeElse: true | |
IndentBraces: false | |
SplitEmptyFunction: true | |
SplitEmptyRecord: true | |
SplitEmptyNamespace: true | |
BreakBeforeBinaryOperators: NonAssignment | |
BreakBeforeTernaryOperators: true | |
BreakConstructorInitializers: AfterColon | |
ConstructorInitializerAllOnOneLineOrOnePerLine: true | |
AllowAllConstructorInitializersOnNextLine: false | |
ConstructorInitializerIndentWidth: 4 | |
ContinuationIndentWidth: 4 | |
Cpp11BracedListStyle: false | |
DerivePointerAlignment: false | |
DisableFormat: false | |
ExperimentalAutoDetectBinPacking: false | |
IndentCaseLabels: true | |
IndentWrappedFunctionNames: true | |
KeepEmptyLinesAtTheStartOfBlocks: true | |
MaxEmptyLinesToKeep: 1 | |
NamespaceIndentation: None | |
PointerAlignment: Right | |
ReflowComments: true | |
SortIncludes: true | |
IncludeCategories: | |
- Regex: '^<.*>' | |
Priority: 1 | |
- Regex: '^".*"' | |
Priority: 2 | |
SpaceAfterCStyleCast: false | |
SpaceAfterTemplateKeyword: true | |
SpaceBeforeParens: ControlStatements | |
SpaceInEmptyParentheses: false | |
SpacesBeforeTrailingComments: 1 | |
Standard: Cpp11 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment