Debian Codegraph @

.clang-format

raw
1 ---
2 # SPDX-FileCopyrightText: 2019 Christoph Cullmann <[email protected]>
3 # SPDX-FileCopyrightText: 2019 Gernot Gebhard <[email protected]>
4 #
5 # SPDX-License-Identifier: MIT
6
7 # This file got automatically created by ECM, do not edit
8 # See https://clang.llvm.org/docs/ClangFormatStyleOptions.html for the config options
9 # and https://community.kde.org/Policies/Frameworks_Coding_Style#Clang-format_automatic_code_formatting
10 # for clang-format tips & tricks
11 ---
12 Language: JavaScript
13 DisableFormat: true
14 ---
15
16 # Style for C++
17 Language: Cpp
18
19 # base is WebKit coding style: https://webkit.org/code-style-guidelines/
20 # below are only things set that diverge from this style!
21 BasedOnStyle: WebKit
22
23 # enforce C++11 (e.g. for std::vector<std::vector<lala>>
24 Standard: Cpp11
25
26 # 4 spaces indent
27 TabWidth: 4
28
29 # 2 * 80 wide lines
30 ColumnLimit: 160
31
32 # sort includes inside line separated groups
33 SortIncludes: true
34
35 # break before braces on function, namespace and class definitions.
36 BreakBeforeBraces: Linux
37
38 # CrlInstruction *a;
39 PointerAlignment: Right
40
41 # horizontally aligns arguments after an open bracket.
42 AlignAfterOpenBracket: Align
43
44 # don't move all parameters to new line
45 AllowAllParametersOfDeclarationOnNextLine: false
46
47 # no single line functions
48 AllowShortFunctionsOnASingleLine: None
49
50 # always break before you encounter multi line strings
51 AlwaysBreakBeforeMultilineStrings: true
52
53 # don't move arguments to own lines if they are not all on the same
54 BinPackArguments: false
55
56 # don't move parameters to own lines if they are not all on the same
57 BinPackParameters: false
58
59 # In case we have an if statement with multiple lines the operator should be at the beginning of the line
60 # but we do not want to break assignments
61 BreakBeforeBinaryOperators: NonAssignment
62
63 # format C++11 braced lists like function calls
64 Cpp11BracedListStyle: true
65
66 # do not put a space before C++11 braced lists
67 SpaceBeforeCpp11BracedList: false
68
69 # remove empty lines
70 KeepEmptyLinesAtTheStartOfBlocks: false
71
72 # no namespace indentation to keep indent level low
73 NamespaceIndentation: None
74
75 # we use template< without space.
76 SpaceAfterTemplateKeyword: false
77
78 # Always break after template declaration
79 AlwaysBreakTemplateDeclarations: true
80
81 # macros for which the opening brace stays attached.
82 ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH, forever, Q_FOREVER, QBENCHMARK, QBENCHMARK_ONCE , wl_resource_for_each, wl_resource_for_each_safe ]
83
84 # keep lambda formatting multi-line if not empty
85 AllowShortLambdasOnASingleLine: Empty
86
87 # We do not want clang-format to put all arguments on a new line
88 AllowAllArgumentsOnNextLine: false