forked from LLNL/gtest-mpi-listener
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
40 lines (32 loc) · 1.01 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
# Which style to base the configuration on
BasedOnStyle: 'LLVM'
# Target language
Language: 'Cpp'
# Which language standard to use
Standard : 'C++11'
# Break the line after the template <...> statement
AlwaysBreakTemplateDeclarations : 'true'
# How to break lines before braces, setting it to custom allows me to specify it
# for individual cases
BreakBeforeBraces : 'Custom'
# Control individual brace wrapping cases
BraceWrapping: {
AfterClass: 'true'
AfterControlStatement: 'false'
AfterEnum : 'true'
AfterFunction : 'true'
AfterNamespace : 'false'
AfterStruct : 'true'
AfterUnion : 'true'
BeforeCatch : 'false'
BeforeElse : 'false'
IndentBraces : 'false'
}
# If the constructor initializers don’t fit on a line, put each initializer on
# its own line.
ConstructorInitializerAllOnOneLineOrOnePerLine : 'true'
# If true, clang-format will sort #includes.
SortIncludes: 'true'
AllowShortFunctionsOnASingleLine: 'Empty'
AllowShortIfStatementsOnASingleLine: 'false'
AllowShortLoopsOnASingleLine: 'false'