-
Notifications
You must be signed in to change notification settings - Fork 1
/
.clang-format
80 lines (69 loc) · 2.39 KB
/
.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
---
########################################################################################
# clang-format definition file for the SLProject code style
########################################################################################
# For general coding style rules in SLProject see:
# https://github.com/cpvrlab/SLProject/wiki/SLProject-Coding-Style
# Please do not change this file without contacting [email protected]
# For options see: https://clang.llvm.org/docs/ClangFormatStyleOptions.html
# For clang-format integration see:
# Qt Creator: https://doc.qt.io/qtcreator/creator-beautifier.html
# Visual Studio: https://marketplace.visualstudio.com/items?itemName=xaver.clang-format
# Android Studio: https://plugins.jetbrains.com/plugin/8396-clangformatij
########################################################################################
BasedOnStyle: Mozilla
BinPackParameters: false
AccessModifierOffset: 0
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: true
AlignTrailingComments: true
AlignEscapedNewlines: DontAlign
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: true
AllowShortCaseLabelsOnASingleLine: true
AllowShortFunctionsOnASingleLine: true
AllowShortIfStatementsOnASingleLine: true
AllowShortLoopsOnASingleLine: true
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
#PenaltyReturnTypeOnItsOwnLine: 0
AlwaysBreakBeforeMultilineStrings: false
BreakConstructorInitializers: BeforeColon
BreakBeforeTernaryOperators: true
BreakBeforeBraces: Custom
BraceWrapping:
AfterControlStatement: true
AfterClass: true
AfterEnum: true
AfterFunction: true
AfterNamespace: true
AfterStruct: true
AfterUnion: true
BeforeCatch: true
BeforeElse: true
IndentBraces: false
ColumnLimit: 0
ConstructorInitializerAllOnOneLineOrOnePerLine: true
Cpp11BracedListStyle: true
IncludeBlocks: Preserve
IndentPPDirectives: AfterHash
IndentWidth: 4
Language: Cpp
PointerAlignment: Left
#UseTab: ForIndentation
#PenaltyBreakComment: 100
ReflowComments: true
SortIncludes: false
SortUsingDeclarations: true
SpaceAfterTemplateKeyword: false
SpaceAfterCStyleCast: false
SpaceBeforeAssignmentOperators: true
SpacesInAngles: false
SpaceInEmptyParentheses: false
SpacesInContainerLiterals: false
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: Cpp11
...