|
Packit Bot |
052d53 |
# SPDX-License-Identifier: MIT
|
|
Packit Bot |
052d53 |
#
|
|
Packit Bot |
052d53 |
# Copyright (C) 2019 Christoph Cullmann <cullmann@kde.org>
|
|
Packit Bot |
052d53 |
# Copyright (C) 2019 Gernot Gebhard <gebhard@absint.com>
|
|
Packit Bot |
052d53 |
#
|
|
Packit Bot |
052d53 |
# Permission is hereby granted, free of charge, to any person obtaining
|
|
Packit Bot |
052d53 |
# a copy of this software and associated documentation files (the
|
|
Packit Bot |
052d53 |
# "Software"), to deal in the Software without restriction, including
|
|
Packit Bot |
052d53 |
# without limitation the rights to use, copy, modify, merge, publish,
|
|
Packit Bot |
052d53 |
# distribute, sublicense, and/or sell copies of the Software, and to
|
|
Packit Bot |
052d53 |
# permit persons to whom the Software is furnished to do so, subject to
|
|
Packit Bot |
052d53 |
# the following conditions:
|
|
Packit Bot |
052d53 |
#
|
|
Packit Bot |
052d53 |
# The above copyright notice and this permission notice shall be included
|
|
Packit Bot |
052d53 |
# in all copies or substantial portions of the Software.
|
|
Packit Bot |
052d53 |
#
|
|
Packit Bot |
052d53 |
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
Packit Bot |
052d53 |
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
Packit Bot |
052d53 |
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
Packit Bot |
052d53 |
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
Packit Bot |
052d53 |
# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
Packit Bot |
052d53 |
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
Packit Bot |
052d53 |
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
Packit Bot |
052d53 |
|
|
Packit Bot |
052d53 |
# Style for C++
|
|
Packit Bot |
052d53 |
Language: Cpp
|
|
Packit Bot |
052d53 |
|
|
Packit Bot |
052d53 |
# base is WebKit coding style: http://www.webkit.org/coding/coding-style.html
|
|
Packit Bot |
052d53 |
# below are only things set that diverge from this style!
|
|
Packit Bot |
052d53 |
BasedOnStyle: WebKit
|
|
Packit Bot |
052d53 |
|
|
Packit Bot |
052d53 |
# enforce C++11 (e.g. for std::vector<std::vector<lala>>
|
|
Packit Bot |
052d53 |
Standard: Cpp11
|
|
Packit Bot |
052d53 |
|
|
Packit Bot |
052d53 |
# 4 spaces indent
|
|
Packit Bot |
052d53 |
TabWidth: 4
|
|
Packit Bot |
052d53 |
|
|
Packit Bot |
052d53 |
# 3 * 80 wide lines
|
|
Packit Bot |
052d53 |
ColumnLimit: 240
|
|
Packit Bot |
052d53 |
|
|
Packit Bot |
052d53 |
# sort includes inside line separated groups
|
|
Packit Bot |
052d53 |
SortIncludes: true
|
|
Packit Bot |
052d53 |
|
|
Packit Bot |
052d53 |
# break before braces on function, namespace and class definitions.
|
|
Packit Bot |
052d53 |
BreakBeforeBraces: Linux
|
|
Packit Bot |
052d53 |
|
|
Packit Bot |
052d53 |
# CrlInstruction *a;
|
|
Packit Bot |
052d53 |
PointerAlignment: Right
|
|
Packit Bot |
052d53 |
|
|
Packit Bot |
052d53 |
# horizontally aligns arguments after an open bracket.
|
|
Packit Bot |
052d53 |
AlignAfterOpenBracket: Align
|
|
Packit Bot |
052d53 |
|
|
Packit Bot |
052d53 |
# align trailing comments
|
|
Packit Bot |
052d53 |
AlignTrailingComments: true
|
|
Packit Bot |
052d53 |
|
|
Packit Bot |
052d53 |
# don't move all parameters to new line
|
|
Packit Bot |
052d53 |
AllowAllParametersOfDeclarationOnNextLine: false
|
|
Packit Bot |
052d53 |
|
|
Packit Bot |
052d53 |
# no single line functions
|
|
Packit Bot |
052d53 |
AllowShortFunctionsOnASingleLine: None
|
|
Packit Bot |
052d53 |
|
|
Packit Bot |
052d53 |
# always break before you encounter multi line strings
|
|
Packit Bot |
052d53 |
AlwaysBreakBeforeMultilineStrings: true
|
|
Packit Bot |
052d53 |
|
|
Packit Bot |
052d53 |
# don't move arguments to own lines if they are not all on the same
|
|
Packit Bot |
052d53 |
BinPackArguments: false
|
|
Packit Bot |
052d53 |
|
|
Packit Bot |
052d53 |
# don't move parameters to own lines if they are not all on the same
|
|
Packit Bot |
052d53 |
BinPackParameters: false
|
|
Packit Bot |
052d53 |
|
|
Packit Bot |
052d53 |
# don't break binary ops
|
|
Packit Bot |
052d53 |
BreakBeforeBinaryOperators: None
|
|
Packit Bot |
052d53 |
|
|
Packit Bot |
052d53 |
# format C++11 braced lists like function calls
|
|
Packit Bot |
052d53 |
Cpp11BracedListStyle: true
|
|
Packit Bot |
052d53 |
|
|
Packit Bot |
052d53 |
# remove empty lines
|
|
Packit Bot |
052d53 |
KeepEmptyLinesAtTheStartOfBlocks: false
|
|
Packit Bot |
052d53 |
|
|
Packit Bot |
052d53 |
# no namespace indentation to keep indent level low
|
|
Packit Bot |
052d53 |
NamespaceIndentation: None
|
|
Packit Bot |
052d53 |
|
|
Packit Bot |
052d53 |
# we use template< without space.
|
|
Packit Bot |
052d53 |
SpaceAfterTemplateKeyword: false
|
|
Packit Bot |
052d53 |
|
|
Packit Bot |
052d53 |
# macros for which the opening brace stays attached.
|
|
Packit Bot |
052d53 |
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH, forever, Q_FOREVER, QBENCHMARK, QBENCHMARK_ONCE ]
|