Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Commit

Permalink
Add clang-format typesetting hints
Browse files Browse the repository at this point in the history
This approximates our current code style as well as possible.
For the actual code style guidelines, see github.com/Ultimaker/Meta.

Fixes Ultimaker#871.
  • Loading branch information
Ghostkeeper committed Dec 19, 2018
1 parent 6523774 commit ff2e5fa
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
AllowAllParametersOfDeclarationOnNextLine: 'true'
AllowShortBlocksOnASingleLine: 'true'
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: 'false'
AllowShortLoopsOnASingleLine: 'false'
AlwaysBreakTemplateDeclarations: 'true'
BreakBeforeBinaryOperators: 'true'
BreakBeforeBraces: Allman
BreakConstructorInitializersBeforeComma: 'true'
ConstructorInitializerAllOnOneLineOrOnePerLine: 'true'
Cpp11BracedListStyle: 'false'
DerivePointerAlignment: 'false'
IndentCaseLabels: 'true'
IndentWidth: '4'
KeepEmptyLinesAtTheStartOfBlocks: 'false'
Language: Cpp
MaxEmptyLinesToKeep: '2'
NamespaceIndentation: None
ObjCSpaceAfterProperty: 'true'
ObjCSpaceBeforeProtocolList: 'false'
PointerAlignment: Left
SpaceBeforeAssignmentOperators: 'true'
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: 'false'
SpacesBeforeTrailingComments: '1'
SpacesInAngles: 'false'
SpacesInCStyleCastParentheses: 'false'
SpacesInContainerLiterals: 'true'
SpacesInParentheses: 'false'
Standard: Cpp11
TabWidth: '5'
UseTab: Never

...

0 comments on commit ff2e5fa

Please sign in to comment.