forked from Slicer/Slicer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.clang-format
More file actions
57 lines (50 loc) · 1.28 KB
/
.clang-format
File metadata and controls
57 lines (50 loc) · 1.28 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
46
47
48
49
50
51
52
53
54
55
56
57
---
ColumnLimit: 180
Language: Cpp
Standard: c++17
BasedOnStyle: Mozilla # Based on LLVM
# LLVM: https://github.com/llvm/llvm-project/blob/llvmorg-20.1.7/clang/lib/Format/Format.cpp#L1472-L1693
# Mozilla: https://github.com/llvm/llvm-project/blob/llvmorg-20.1.7/clang/lib/Format/Format.cpp#L1897-L1921
# LLVM-style overides
AlignEscapedNewlines: Left
AllowShortCaseLabelsOnASingleLine: true
AllowShortEnumsOnASingleLine: true
AlwaysBreakTemplateDeclarations: true
BreakBeforeBinaryOperators: NonAssignment
ConstructorInitializerIndentWidth: 2
IndentPPDirectives: AfterHash
InsertBraces: true
PackConstructorInitializers: Never
PPIndentWidth: 1
# Mozilla-style overides
AllowShortFunctionsOnASingleLine: Inline
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
BreakBeforeBraces: Allman
FixNamespaceComments: true
SpaceAfterTemplateKeyword: true
# A list of macros that should be interpreted as foreach loops instead of as
# function calls.
ForEachMacros:
- BOOST_FOREACH
- foreach
- forever
- QBENCHMARK
- QBENCHMARK_ONCE
- Q_FOREACH
- Q_FOREVER
QualifierAlignment: Custom
QualifierOrder:
- friend
- static
- inline
- constexpr
- const
- type
SortIncludes: false
---
Language: JavaScript
DisableFormat: true
---
Language: Json
DisableFormat: true