Debian Codegraph @

.clang-format-pre-commit

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