forked from openscad/openscad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
37 lines (30 loc) · 964 Bytes
/
.clang-format
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
# Some set of config values, then refined below
BasedOnStyle: Google
ColumnLimit: 105
ContinuationIndentWidth: 2
ConstructorInitializerIndentWidth: 2
# public:, private: in classes: no indent
AccessModifierOffset: -2
# case on same level as switch
IndentCaseLabels: false
AllowShortCaseLabelsOnASingleLine: true
AlignConsecutiveShortCaseStatements:
Enabled: true
AcrossEmptyLines: true
AcrossComments: true
AlignCaseColons: false
# Always align pointer * and reference & to the right.
DerivePointerAlignment: false
PointerAlignment: Right
ReferenceAlignment: Left
# To be enabled later:
# * once all misc-include-cleaner are addressed an no accidental inclusion
# order needed.
# * Some CGAL inclusion order has been figuured out.
SortIncludes: false
# Braces on newline in functions, classes and namespaces.
BreakBeforeBraces: Custom
BraceWrapping:
AfterClass: true
AfterFunction: true
AllowShortIfStatementsOnASingleLine: AllIfsAndElse