-
Notifications
You must be signed in to change notification settings - Fork 6
/
.clang-format
34 lines (34 loc) · 1.31 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
# This file is part of Karabo.
#
# http://www.karabo.eu
#
# Copyright (C) European XFEL GmbH Schenefeld. All rights reserved.
#
# Karabo is free software: you can redistribute it and/or modify it under
# the terms of the MPL-2 Mozilla Public License.
#
# You should have received a copy of the MPL-2 Public License along with
# Karabo. If not, see <https://www.mozilla.org/en-US/MPL/2.0/>.
#
# Karabo 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.
Language: Cpp
BasedOnStyle: Google
# Overrides to Google style
AllowShortIfStatementsOnASingleLine: AllIfsAndElse
AllowShortFunctionsOnASingleLine: Empty
ColumnLimit: 120
# 'ContinuationIndentWidth' should be set to a value greater than 'IndentWidth'
# to avoid wrapped function parameters lists having the same indentation as the
# function's body. In Google style 'IndentWidth' is '4' and 'AlignAfterOpenBracket'
# is 'DontAlign' (if 'AlignAfterOpenBracket' is set to 'Align', the setting for
# 'ContinuationIndentWidth' won't make a difference for the long parameters list
# scenario).
ContinuationIndentWidth: 6
IndentWidth: 4
MaxEmptyLinesToKeep: 2
NamespaceIndentation: All
SpacesBeforeTrailingComments: 1
DerivePointerAlignment: false
ReferenceAlignment: Left