-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.clang-format
31 lines (25 loc) · 1005 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
---
ColumnLimit: 120
Standard: c++11
BasedOnStyle: Mozilla # Based on LLVM
# LLVM: https://github.com/llvm/llvm-project/blob/llvmorg-17.0.6/clang/lib/Format/Format.cpp#L1387-L1586
# Mozilla: https://github.com/llvm/llvm-project/blob/llvmorg-17.0.6/clang/lib/Format/Format.cpp#L1790-L1814
# LLVM-style overides
AlignEscapedNewlines: Left
AllowShortEnumsOnASingleLine: true
AlwaysBreakTemplateDeclarations: true
BreakBeforeBinaryOperators: NonAssignment
ConstructorInitializerIndentWidth: 2
IndentPPDirectives: AfterHash
PackConstructorInitializers: Never
# Mozilla-style overides
AllowShortFunctionsOnASingleLine: Inline
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
FixNamespaceComments: true
SpaceAfterTemplateKeyword: true
BreakBeforeBraces: Mozilla
# A list of macros that should be interpreted as foreach loops instead of as
# function calls.
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH, forever, Q_FOREVER, QBENCHMARK, QBENCHMARK_ONCE ]
SortIncludes: false