Skip to content

Instantly share code, notes, and snippets.

@joaoantoniocardoso
Last active April 17, 2020 17:14
Show Gist options
  • Save joaoantoniocardoso/f1140b43d9632f3a70f75284dcdac8e1 to your computer and use it in GitHub Desktop.
Save joaoantoniocardoso/f1140b43d9632f3a70f75284dcdac8e1 to your computer and use it in GitHub Desktop.
clang-format for efl style
---
BasedOnStyle: Mozilla
Language: Cpp
SortIncludes: 'false'
IncludeBlocks: Preserve
MaxEmptyLinesToKeep: 2
AlignConsecutiveMacros: 'true'
AlignConsecutiveDeclarations: 'false'
AlignEscapedNewlines: Right
AlignTrailingComments: 'true'
AlignOperands: 'true'
PointerAlignment: Right
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: AllDefinitions
AlwaysBreakBeforeMultilineStrings: 'true'
BreakBeforeTernaryOperators: 'true'
BreakStringLiterals: 'true'
BreakBeforeBraces: Custom
BreakConstructorInitializers: BeforeComma
BreakInheritanceList: BeforeComma
BraceWrapping:
AfterControlStatement: 'true'
AfterCaseLabel: 'true'
AfterClass: 'true'
AfterEnum: 'true'
AfterFunction: 'true'
AfterNamespace: 'true'
AfterStruct: 'true'
AfterUnion: 'true'
AfterExternBlock: 'true'
BeforeCatch: 'true'
BeforeElse: 'true'
IndentBraces: 'true'
AllowAllConstructorInitializersOnNextLine: 'true'
AllowAllParametersOfDeclarationOnNextLine: 'false'
AllowShortBlocksOnASingleLine: 'true'
AllowShortIfStatementsOnASingleLine: 'true'
AllowShortCaseLabelsOnASingleLine: 'true'
AllowShortLoopsOnASingleLine: 'true'
AllowShortFunctionsOnASingleLine: Inline
BinPackArguments: 'true'
BinPackParameters: 'true'
ColumnLimit: '80'
UseTab: Never
IndentWidth: '2'
IndentCaseLabels: 'false'
SpacesBeforeTrailingComments: '2'
SpaceBeforeRangeBasedForLoopColon: 'false'
SpaceInEmptyParentheses: 'false'
SpacesInParentheses: 'false'
SpacesInSquareBrackets: 'false'
SpacesInAngles: 'false'
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment