.clang-format 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. AlignAfterOpenBracket: Align
  2. # This option we want but it's frequently broken and causes bad
  3. # misalignment. The canary is wheel_click_count_parser, if that works
  4. # we can actually enable it.
  5. # AlignArrayOfStructures: Left
  6. AlignConsecutiveAssignments: false
  7. AlignConsecutiveDeclarations: false
  8. AlignConsecutiveMacros: true
  9. AlignConsecutiveShortCaseStatements:
  10. Enabled: true
  11. AcrossEmptyLines: false
  12. AcrossComments: true
  13. AlignCaseColons: false
  14. AlignEscapedNewlines: Right
  15. AlignOperands: Align
  16. AlignTrailingComments: true
  17. AllowAllArgumentsOnNextLine: false
  18. AllowAllParametersOfDeclarationOnNextLine: false
  19. AllowShortBlocksOnASingleLine: false
  20. AllowShortCaseLabelsOnASingleLine: false
  21. AllowShortFunctionsOnASingleLine: false
  22. AllowShortIfStatementsOnASingleLine: false
  23. AllowShortLoopsOnASingleLine: false
  24. AlwaysBreakBeforeMultilineStrings: true
  25. BinPackArguments: false
  26. BinPackParameters: OnePerLine
  27. BraceWrapping:
  28. AfterFunction: true
  29. BreakAfterReturnType: All
  30. BreakBeforeBraces: Custom
  31. BreakStringLiterals: false
  32. ColumnLimit: 88
  33. ContinuationIndentWidth: 8
  34. Cpp11BracedListStyle: false
  35. IncludeBlocks: Regroup
  36. IncludeCategories:
  37. - Regex: '^(<|")config\.h(>|")'
  38. Priority: 0
  39. SortPriority: 0
  40. - Regex: '^<.*'
  41. Priority: 1
  42. SortPriority: 0
  43. - Regex: '^"util-.*'
  44. Priority: 2
  45. SortPriority: 0
  46. - Regex: '.*'
  47. Priority: 3
  48. SortPriority: 0
  49. IndentCaseLabels: false
  50. IndentGotoLabels: false
  51. IndentWidth: 8
  52. MaxEmptyLinesToKeep: 1
  53. PointerAlignment: Right
  54. ReflowComments: true
  55. RemoveEmptyLinesInUnwrappedLines: true
  56. RemoveParentheses: MultipleParentheses
  57. RemoveSemicolon: true
  58. SkipMacroDefinitionBody: true
  59. SortIncludes: true
  60. SpaceAfterCStyleCast: false
  61. SpaceAfterLogicalNot: false
  62. SpaceBeforeAssignmentOperators: true
  63. SpaceBeforeCaseColon: false
  64. SpaceBeforeParens: ControlStatementsExceptControlMacros
  65. SpacesInContainerLiterals: true
  66. SpacesInParens: Custom
  67. TabWidth: 8
  68. UseTab: ForContinuationAndIndentation
  69. ForEachMacros:
  70. - ARRAY_FOR_EACH
  71. - list_for_each
  72. - list_for_each_safe
  73. - tp_for_each_touch
  74. - range_for_each
  75. - litest_log_group
  76. - litest_with_logcapture
  77. - litest_with_parameters
  78. - litest_with_event_frame
  79. - udev_list_entry_foreach
  80. # END_TEST is defined as something that enforces a line break
  81. Macros: [ "CASE_RETURN_STRING(s)=case s: return s", "START_TEST(s)=static void s(void)", "END_TEST=enum foo;"]