-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.clang-format
More file actions
45 lines (35 loc) · 1.19 KB
/
.clang-format
File metadata and controls
45 lines (35 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
---
Language: Cpp
BasedOnStyle: Microsoft
Standard: Latest
# Erhöht die maximale Zeilenlänge (z.B. auf 120 oder 140)
ColumnLimit: 140
# Verhindert, dass Parameter auf mehrere Zeilen verteilt werden,
# wenn sie nicht in eine passen. Sie landen dann entweder alle
# in einer Zeile oder (wenn zu lang) jeweils einer pro Zeile.
BinPackParameters: false
# Steuert den Umbruch vor/nach der Klammer bei langen Listen
AllowAllParametersOfDeclarationOnNextLine: true
#AlignAfterOpenBracket: true
# Einrückung
IndentWidth: 4
AccessModifierOffset: -4
NamespaceIndentation: None
# Konstruktor-Initialisierung (Deine Wunsch-Formatierung)
BreakConstructorInitializers: BeforeColon
ConstructorInitializerAllOnOneLineOrOnePerLine: false
PackConstructorInitializers: Never
# Pointer & Referenzen: char* variable
PointerAlignment: Left
# Zuweisungen: variable=wert (Optional, falls du das wirklich willst)
# SpaceBeforeAssignmentOperators: false
# Klammer-Regeln
BreakBeforeBraces: Custom
BraceWrapping:
AfterFunction: true
AfterControlStatement: Never
BeforeElse: false
AfterClass: true
# Kompakter Code
AllowShortIfStatementsOnASingleLine: true
SortIncludes: false