Created
July 12, 2023 08:31
-
-
Save srathi-monarch/b7dac6f5dcb1546a6c0a5ba007297706 to your computer and use it in GitHub Desktop.
The default clang-format config used in clion
This file contains 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: None | |
AlignOperands: Align | |
AllowAllArgumentsOnNextLine: false | |
AllowAllConstructorInitializersOnNextLine: false | |
AllowAllParametersOfDeclarationOnNextLine: false | |
AllowShortBlocksOnASingleLine: Always | |
AllowShortCaseLabelsOnASingleLine: false | |
AllowShortFunctionsOnASingleLine: All | |
AllowShortIfStatementsOnASingleLine: Always | |
AllowShortLambdasOnASingleLine: All | |
AllowShortLoopsOnASingleLine: true | |
AlwaysBreakAfterReturnType: None | |
AlwaysBreakTemplateDeclarations: Yes | |
BreakBeforeBraces: Custom | |
BraceWrapping: | |
AfterCaseLabel: false | |
AfterClass: false | |
AfterControlStatement: Never | |
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: 0 | |
CompactNamespaces: false | |
ContinuationIndentWidth: 8 | |
IndentCaseLabels: true | |
IndentPPDirectives: None | |
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: false | |
SpaceInEmptyParentheses: false | |
SpacesBeforeTrailingComments: 0 | |
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