Skip to content

Instantly share code, notes, and snippets.

@Sauci
Last active November 8, 2019 06:20
Show Gist options
  • Save Sauci/1b1a542fe03c70e6012e204a48481fc9 to your computer and use it in GitHub Desktop.
Save Sauci/1b1a542fe03c70e6012e204a48481fc9 to your computer and use it in GitHub Desktop.
---
# This is the global code formatting configuration. It might be downloaded by CMake using command
# file(DOWNLOAD url/to/this/file ${CMAKE_SOURCE_DIR}/.clang-format)
# To edit this file, follow this link: https://zed0.co.uk/clang-format-configurator/
# TODO: AlignConsecutiveMacros is not supported by current version of CLion (2019.3 EAP).
# Uncomment once it will be supported.
# AlignConsecutiveMacros: false
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlines: Right
AlignOperands: false
AlignTrailingComments: false
AllowAllArgumentsOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
BinPackArguments: false
BinPackParameters: false
BraceWrapping:
AfterCaseLabel: true
AfterClass: true
AfterControlStatement: true
AfterEnum: true
AfterFunction: true
AfterNamespace: true
AfterObjCDeclaration: true
AfterStruct: true
AfterUnion: true
BeforeCatch: true
BeforeElse: true
IndentBraces: false
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Custom
BreakBeforeTernaryOperators: false
BreakStringLiterals: true
ColumnLimit: 100
CommentPragmas: ^lint
ContinuationIndentWidth: 4
DisableFormat: false
ExperimentalAutoDetectBinPacking: false
IncludeBlocks: Regroup
IndentCaseLabels: true
IndentPPDirectives: None
IndentWidth: 4
IndentWrappedFunctionNames: false
KeepEmptyLinesAtTheStartOfBlocks: false
MaxEmptyLinesToKeep: 1
PenaltyReturnTypeOnItsOwnLine: 100
PointerAlignment: Right
ReflowComments: true
SortIncludes: true
SpaceAfterCStyleCast: false
SpaceAfterLogicalNot: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
SpaceBeforeRangeBasedForLoopColon: false
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
SpacesInCStyleCastParentheses: false
SpacesInContainerLiterals: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
UseTab: Never
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment