.clang-format 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. ---
  2. AlignConsecutiveMacros: Consecutive
  3. AlignConsecutiveAssignments: None
  4. AlignConsecutiveBitFields: None
  5. AlignConsecutiveDeclarations: None
  6. AlignEscapedNewlines: Right
  7. AlignOperands: Align
  8. AlignTrailingComments: true
  9. AllowAllArgumentsOnNextLine: true
  10. AllowAllParametersOfDeclarationOnNextLine: true
  11. AllowShortEnumsOnASingleLine: true
  12. AllowShortBlocksOnASingleLine: Never
  13. AllowShortCaseLabelsOnASingleLine: false
  14. AllowShortFunctionsOnASingleLine: All
  15. AllowShortIfStatementsOnASingleLine: Never
  16. AllowShortLoopsOnASingleLine: false
  17. AlwaysBreakAfterDefinitionReturnType: All
  18. AlwaysBreakAfterReturnType: AllDefinitions
  19. AlwaysBreakBeforeMultilineStrings: false
  20. AlwaysBreakTemplateDeclarations: MultiLine
  21. # Custom brace breaking
  22. BreakBeforeBraces: Custom
  23. BraceWrapping:
  24. AfterCaseLabel: true
  25. AfterClass: true
  26. AfterControlStatement: Never
  27. AfterEnum: true
  28. AfterFunction: true
  29. AfterNamespace: true
  30. AfterObjCDeclaration: true
  31. AfterStruct: true
  32. AfterUnion: true
  33. AfterExternBlock: false
  34. BeforeElse: false
  35. BeforeWhile: true
  36. IndentBraces: false
  37. SplitEmptyFunction: true
  38. SplitEmptyRecord: true
  39. # Make the closing brace of container literals go to a new line
  40. Cpp11BracedListStyle: false
  41. # Never format includes
  42. IncludeBlocks: Preserve
  43. # clang-format version 4.0 through 12.0:
  44. #SortIncludes: false
  45. # clang-format version 13.0+:
  46. #SortIncludes: Never
  47. # No length limit, in case it breaks macros, you can
  48. # disable it with /* clang-format off/on */ comments
  49. ColumnLimit: 0
  50. IndentWidth: 4
  51. ContinuationIndentWidth: 4
  52. IndentCaseLabels: false
  53. IndentCaseBlocks: false
  54. IndentGotoLabels: true
  55. IndentPPDirectives: None
  56. IndentExternBlock: NoIndent
  57. SpaceAfterCStyleCast: true
  58. SpacesInCStyleCastParentheses: false
  59. SpacesInConditionalStatement: false
  60. SpacesInContainerLiterals: true
  61. SpaceBeforeAssignmentOperators: true
  62. SpaceBeforeCaseColon: false
  63. SpaceBeforeParens: ControlStatements
  64. SpaceAroundPointerQualifiers: Default
  65. SpaceInEmptyBlock: false
  66. SpaceInEmptyParentheses: false
  67. UseCRLF: false
  68. UseTab: Never
  69. ForEachMacros:
  70. [
  71. "spa_list_for_each",
  72. "spa_list_for_each_safe",
  73. "wl_list_for_each",
  74. "wl_array_for_each",
  75. "udev_list_entry_foreach",
  76. ]
  77. ---