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.

51 lines
1.4 KiB

  1. ---
  2. # This configuration requires clang-format version 15 exactly.
  3. BasedOnStyle: Mozilla
  4. AlignOperands: false
  5. AllowShortFunctionsOnASingleLine: InlineOnly
  6. AlwaysBreakAfterDefinitionReturnType: None
  7. AlwaysBreakAfterReturnType: None
  8. BinPackArguments: true
  9. BinPackParameters: true
  10. BraceWrapping:
  11. AfterClass: true
  12. AfterEnum: true
  13. AfterFunction: true
  14. AfterStruct: true
  15. AfterUnion: true
  16. BreakBeforeBraces: Custom
  17. ColumnLimit: 79
  18. IndentPPDirectives: AfterHash
  19. SortUsingDeclarations: false
  20. SpaceAfterTemplateKeyword: true
  21. IncludeBlocks: Regroup
  22. IncludeCategories:
  23. - Regex: '^[<"]cmSTL\.hxx'
  24. Priority: -2
  25. - Regex: '^[<"]cmConfigure\.h'
  26. Priority: -1
  27. - Regex: '^<queue>'
  28. Priority: 1
  29. - Regex: '^(<|")cm(ext)?/'
  30. Priority: 2
  31. - Regex: '^(<|")windows\.h'
  32. Priority: 3
  33. - Regex: '^<sys/'
  34. Priority: 5
  35. - Regex: '^(<|")Qt?[A-Z]'
  36. Priority: 6
  37. - Regex: '^<cmtp/'
  38. Priority: 7
  39. - Regex: '^(<|")cmsys/'
  40. Priority: 8
  41. - Regex: '^(<|")cm_'
  42. Priority: 9
  43. - Regex: '^(<|")cm[A-Z][^.]+\.h'
  44. Priority: 10
  45. - Regex: '^<[^.]+\.h'
  46. Priority: 4
  47. - Regex: '^<'
  48. Priority: 1
  49. - Regex: '.*'
  50. Priority: 11
  51. ...