Skip to content

Instantly share code, notes, and snippets.

@zheng95z
Last active May 7, 2022 23:58
Show Gist options
  • Save zheng95z/ccdd373e7ab7831fbbe3f9b541e30060 to your computer and use it in GitHub Desktop.
Save zheng95z/ccdd373e7ab7831fbbe3f9b541e30060 to your computer and use it in GitHub Desktop.
[.clang-format] #cpp #settings
# Generated from CLion C/C++ Code Style settings
BasedOnStyle: LLVM
AccessModifierOffset: -4
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: false
AlignOperands: Align
ConstructorInitializerAllOnOneLineOrOnePerLine: false
AllowAllArgumentsOnNextLine: true
AllowAllConstructorInitializersOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: Always
AllowShortCaseLabelsOnASingleLine: true
AllowShortFunctionsOnASingleLine: All
AllowShortIfStatementsOnASingleLine: true
AllowShortLambdasOnASingleLine: All
AllowShortLoopsOnASingleLine: true
AllowShortEnumsOnASingleLine: true
AlwaysBreakAfterReturnType: None
AlwaysBreakTemplateDeclarations: MultiLine
BreakBeforeBraces: Attach
Cpp11BracedListStyle: true
IndentWrappedFunctionNames: false
BraceWrapping:
AfterCaseLabel: false
AfterClass: false
AfterControlStatement: Never
AfterEnum: false
AfterFunction: false
AfterNamespace: false
AfterUnion: false
BeforeCatch: false
BeforeElse: false
BeforeLambdaBody: false
IndentBraces: false
SplitEmptyFunction: false
SplitEmptyRecord: true
SplitEmptyNamespace: false
AfterObjCDeclaration: false
AfterExternBlock: false
AfterStruct: false
BreakBeforeBinaryOperators: None
BreakBeforeTernaryOperators: false
BreakBeforeConceptDeclarations: true
BreakBeforeInheritanceComma: false
BreakAfterJavaFieldAnnotations: true
BreakStringLiterals: true
BreakConstructorInitializersBeforeComma: false
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakBeforeMultilineStrings: false
ColumnLimit: 80
SortIncludes: false
CompactNamespaces: true
ContinuationIndentWidth: 4
IndentCaseLabels: true
IndentPPDirectives: None
IndentExternBlock: NoIndent
IndentWidth: 4
KeepEmptyLinesAtTheStartOfBlocks: true
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: false
PointerAlignment: Right
ReflowComments: false
SpaceAfterCStyleCast: false
SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeCpp11BracedList: false
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatements
SpaceBeforeRangeBasedForLoopColon: true
SpaceInEmptyParentheses: false
SpacesInAngles: false
SpacesInCStyleCastParentheses: false
SpacesInContainerLiterals: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
SpacesBeforeTrailingComments: 2
TabWidth: 4
UseTab: Never
IndentRequires: true
SpacesInConditionalStatement: false
SortUsingDeclarations: true
AlignEscapedNewlines: Left
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment