Created
November 23, 2021 20:32
-
-
Save taljacob2/7988b3d172cdbe61f476736fd4840dee to your computer and use it in GitHub Desktop.
.clang-format settings for cpp
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
# Generated from CLion C/C++ Code Style settings | |
BasedOnStyle: LLVM | |
#AccessModifierOffset: -4 | |
AlignAfterOpenBracket: Align | |
AlignConsecutiveAssignments: true | |
AlignOperands: true | |
AllowAllArgumentsOnNextLine: false | |
AlignConsecutiveDeclarations: true | |
AlignConsecutiveMacros: true | |
AlignEscapedNewlines: Left | |
AllowAllConstructorInitializersOnNextLine: false | |
AllowAllParametersOfDeclarationOnNextLine: false | |
AllowShortBlocksOnASingleLine: Always | |
AllowShortCaseLabelsOnASingleLine: false | |
AllowShortFunctionsOnASingleLine: All | |
AllowShortIfStatementsOnASingleLine: Always | |
AllowShortLambdasOnASingleLine: All | |
AllowShortLoopsOnASingleLine: true | |
AlwaysBreakAfterReturnType: None | |
AlwaysBreakTemplateDeclarations: MultiLine | |
AlignTrailingComments: true | |
BreakBeforeBraces: Custom | |
BraceWrapping: | |
AfterCaseLabel: false | |
AfterClass: false | |
AfterControlStatement: false | |
AfterEnum: false | |
AfterFunction: false | |
AfterNamespace: false | |
AfterUnion: false | |
BeforeCatch: false | |
BeforeElse: false | |
IndentBraces: false | |
SplitEmptyFunction: false | |
SplitEmptyRecord: true | |
BreakBeforeBinaryOperators: None | |
BreakBeforeTernaryOperators: true | |
BreakConstructorInitializers: BeforeColon | |
BreakInheritanceList: BeforeColon | |
ColumnLimit: 80 | |
CompactNamespaces: false | |
ContinuationIndentWidth: 8 | |
IndentCaseLabels: true | |
IndentPPDirectives: None | |
SpaceInEmptyBlock: false | |
IndentWidth: 4 | |
KeepEmptyLinesAtTheStartOfBlocks: true | |
MaxEmptyLinesToKeep: 2 | |
NamespaceIndentation: All | |
ObjCSpaceAfterProperty: false | |
ObjCSpaceBeforeProtocolList: true | |
PointerAlignment: Right | |
ReflowComments: false | |
SpaceAfterCStyleCast: true | |
SpaceAfterLogicalNot: false | |
SpaceAfterTemplateKeyword: false | |
SpaceBeforeAssignmentOperators: true | |
SpaceBeforeCpp11BracedList: false | |
SpaceBeforeCtorInitializerColon: true | |
SpaceBeforeInheritanceColon: true | |
SpaceBeforeParens: ControlStatements | |
SpaceBeforeRangeBasedForLoopColon: true | |
SpaceInEmptyParentheses: false | |
SpacesBeforeTrailingComments: 1 | |
SpacesInAngles: false | |
SpacesInCStyleCastParentheses: false | |
SpacesInContainerLiterals: false | |
SpacesInParentheses: false | |
SpacesInSquareBrackets: false | |
TabWidth: 4 | |
UseTab: Never |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment