Commit ffa38691 authored by Leander Schulten's avatar Leander Schulten

IDE: Add .clang-format file. Closes #41

parent b9bcfd26
Pipeline #188659 passed with stage
in 4 minutes and 53 seconds
---
Language: Cpp
BasedOnStyle: LLVM
AccessModifierOffset: -4
AllowShortCaseLabelsOnASingleLine: true
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: true
AlwaysBreakTemplateDeclarations: Yes
ColumnLimit: 300
IncludeCategories:
- Regex: '"[[:alnum:]\.]*"' # alle im gleichen Ordner
Priority: 1
- Regex: '".*"' # alle im gleichen Projekt
Priority: 2
- Regex: '<Q.*>' # alle Qt Klassen
Priority: 3
- Regex: '.*' # der Rest
Priority: 4
IndentWidth: 4
NamespaceIndentation: Inner
PenaltyBreakBeforeFirstCallParameter: 100
PenaltyBreakComment: 160
PenaltyBreakFirstLessLess: 160
PenaltyReturnTypeOnItsOwnLine: 180
...
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment