Warning, /frameworks/extra-cmake-modules/kde-modules/clang-format.cmake is written in an unsupported language. File is not indexed.

0001 ---
0002 # SPDX-FileCopyrightText: 2019 Christoph Cullmann <cullmann@kde.org>
0003 # SPDX-FileCopyrightText: 2019 Gernot Gebhard <gebhard@absint.com>
0004 #
0005 # SPDX-License-Identifier: MIT
0006 
0007 # This file got automatically created by ECM, do not edit
0008 # See https://clang.llvm.org/docs/ClangFormatStyleOptions.html for the config options
0009 # and https://community.kde.org/Policies/Frameworks_Coding_Style#Clang-format_automatic_code_formatting
0010 # for clang-format tips & tricks
0011 ---
0012 Language: JavaScript
0013 DisableFormat: true
0014 ---
0015 
0016 # Style for C++
0017 Language: Cpp
0018 
0019 # base is WebKit coding style: https://webkit.org/code-style-guidelines/
0020 # below are only things set that diverge from this style!
0021 BasedOnStyle: WebKit
0022 
0023 # enforce C++11 (e.g. for std::vector<std::vector<lala>>
0024 Standard: Cpp11
0025 
0026 # 4 spaces indent
0027 TabWidth: 4
0028 
0029 # 2 * 80 wide lines
0030 ColumnLimit: 160
0031 
0032 # sort includes inside line separated groups
0033 SortIncludes: true
0034 
0035 # break before braces on function, namespace and class definitions.
0036 BreakBeforeBraces: Linux
0037 
0038 # CrlInstruction *a;
0039 PointerAlignment: Right
0040 
0041 # horizontally aligns arguments after an open bracket.
0042 AlignAfterOpenBracket: Align
0043 
0044 # don't move all parameters to new line
0045 AllowAllParametersOfDeclarationOnNextLine: false
0046 
0047 # no single line functions
0048 AllowShortFunctionsOnASingleLine: None
0049 
0050 # always break before you encounter multi line strings
0051 AlwaysBreakBeforeMultilineStrings: true
0052 
0053 # don't move arguments to own lines if they are not all on the same
0054 BinPackArguments: false
0055 
0056 # don't move parameters to own lines if they are not all on the same
0057 BinPackParameters: false
0058 
0059 # In case we have an if statement with multiple lines the operator should be at the beginning of the line
0060 # but we do not want to break assignments
0061 BreakBeforeBinaryOperators: NonAssignment
0062 
0063 # format C++11 braced lists like function calls
0064 Cpp11BracedListStyle: true
0065 
0066 # do not put a space before C++11 braced lists
0067 SpaceBeforeCpp11BracedList: false
0068 
0069 # remove empty lines
0070 KeepEmptyLinesAtTheStartOfBlocks: false
0071 
0072 # no namespace indentation to keep indent level low
0073 NamespaceIndentation: None
0074 
0075 # we use template< without space.
0076 SpaceAfterTemplateKeyword: false
0077 
0078 # Always break after template declaration
0079 AlwaysBreakTemplateDeclarations: true
0080 
0081 # macros for which the opening brace stays attached.
0082 ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH, forever, Q_FOREVER, QBENCHMARK, QBENCHMARK_ONCE , wl_resource_for_each, wl_resource_for_each_safe ]
0083 
0084 # keep lambda formatting multi-line if not empty
0085 AllowShortLambdasOnASingleLine: Empty
0086 
0087 # We do not want clang-format to put all arguments on a new line
0088 AllowAllArgumentsOnNextLine: false