.clang-format 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. ---
  2. # This configuration requires clang-format version 6.0 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: '^[<"]cmConfigure\.h'
  24. Priority: -1
  25. - Regex: '^<queue>'
  26. Priority: 1
  27. - Regex: '^(<|")cm(ext)?/'
  28. Priority: 2
  29. - Regex: '^(<|")windows\.h'
  30. Priority: 3
  31. - Regex: '^<sys/'
  32. Priority: 5
  33. - Regex: '^(<|")Qt?[A-Z]'
  34. Priority: 6
  35. - Regex: '^(<|")cmsys/'
  36. Priority: 7
  37. - Regex: '^(<|")cm_'
  38. Priority: 8
  39. - Regex: '^(<|")cm[A-Z][^.]+\.h'
  40. Priority: 9
  41. - Regex: '^<[^.]+\.h'
  42. Priority: 4
  43. - Regex: '^<'
  44. Priority: 1
  45. - Regex: '.*'
  46. Priority: 10
  47. ...