-
Notifications
You must be signed in to change notification settings - Fork 11
/
.clang-format
76 lines (61 loc) · 2.29 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
# This file is part of P^nMPI.
#
# Copyright (c)
# 2008-2019 Lawrence Livermore National Laboratories, United States of America
# 2011-2016 ZIH, Technische Universitaet Dresden, Federal Republic of Germany
# 2013-2019 RWTH Aachen University, Federal Republic of Germany
#
#
# P^nMPI is free software; you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License as published by the Free
# Software Foundation version 2.1 dated February 1999.
#
# P^nMPI is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
# details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with P^nMPI; if not, write to the
#
# Free Software Foundation, Inc.
# 51 Franklin St, Fifth Floor
# Boston, MA 02110, USA
#
#
# Written by Martin Schulz, [email protected].
#
# LLNL-CODE-402774
# This is the clang-format configuration for PnMPI.
#
# Clang-format should help to beautify the code, so that every developer can
# write code, while the beautifier will take care about the style guides. Please
# read the README and/or docs for more informations, how to use this
# configuration with clang-format.
# Basically we use LLVM style, but have some changes listed in this
# configuration.
BasedOnStyle: LLVM
# A maximum of two blank lines are allowed.
MaxEmptyLinesToKeep: 3
# If lines must be continued in a second line, indent the second line with two
# spaces.
ContinuationIndentWidth: 2
---
Language: Cpp
# Use C++03-compatible syntax.
Standard: Cpp03
Cpp11BracedListStyle: false
# Align escaped newlines as far left as possible.
AlignEscapedNewlinesLeft: true
# The first parameter of a function declaration must be in the first line, the
# other parameters may be in the following lines but will be aligned horizontal.
AllowAllParametersOfDeclarationOnNextLine: false
# Short case labels will be contracted to a single line
AllowShortCaseLabelsOnASingleLine: true
# Do not merge empty functions
AllowShortFunctionsOnASingleLine: None
# Break before any braces for new context.
BreakBeforeBraces: GNU
# Empty lines at the start of blocks will not be kept.
KeepEmptyLinesAtTheStartOfBlocks: false
...