KDE PIM support for the p≡p engine
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

76 lines
2.1 KiB

  1. ---
  2. # SPDX-FileCopyrightText: 2019 Christoph Cullmann <cullmann@kde.org>
  3. # SPDX-FileCopyrightText: 2019 Gernot Gebhard <gebhard@absint.com>
  4. #
  5. # SPDX-License-Identifier: MIT
  6. # Style for C++
  7. Language: Cpp
  8. # base is WebKit coding style: https://webkit.org/code-style-guidelines/
  9. # below are only things set that diverge from this style!
  10. BasedOnStyle: WebKit
  11. # enforce C++11 (e.g. for std::vector<std::vector<lala>>
  12. Standard: Cpp11
  13. # 4 spaces indent
  14. TabWidth: 4
  15. # 2 * 80 wide lines
  16. ColumnLimit: 160
  17. # sort includes inside line separated groups
  18. SortIncludes: true
  19. # break before braces on function, namespace and class definitions.
  20. BreakBeforeBraces: Linux
  21. # CrlInstruction *a;
  22. PointerAlignment: Right
  23. # horizontally aligns arguments after an open bracket.
  24. AlignAfterOpenBracket: Align
  25. # don't move all parameters to new line
  26. AllowAllParametersOfDeclarationOnNextLine: false
  27. # no single line functions
  28. AllowShortFunctionsOnASingleLine: None
  29. # always break before you encounter multi line strings
  30. AlwaysBreakBeforeMultilineStrings: true
  31. # don't move arguments to own lines if they are not all on the same
  32. BinPackArguments: false
  33. # don't move parameters to own lines if they are not all on the same
  34. BinPackParameters: false
  35. # In case we have an if statement whith multiple lines the operator should be at the beginning of the line
  36. # but we do not want to break assignments
  37. BreakBeforeBinaryOperators: NonAssignment
  38. # format C++11 braced lists like function calls
  39. Cpp11BracedListStyle: true
  40. # do not put a space before C++11 braced lists
  41. SpaceBeforeCpp11BracedList: false
  42. # remove empty lines
  43. KeepEmptyLinesAtTheStartOfBlocks: false
  44. # no namespace indentation to keep indent level low
  45. NamespaceIndentation: None
  46. # we use template< without space.
  47. SpaceAfterTemplateKeyword: false
  48. # macros for which the opening brace stays attached.
  49. ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH, forever, Q_FOREVER, QBENCHMARK, QBENCHMARK_ONCE ]
  50. # keep lambda formatting multi-line if not empty
  51. AllowShortLambdasOnASingleLine: Empty
  52. # We do not want clang-format to put all arguments on a new line
  53. AllowAllArgumentsOnNextLine: false