.clang-format 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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: '^(<|")cm/'
  26. Priority: 2
  27. - Regex: '^(<|")windows\.h'
  28. Priority: 3
  29. - Regex: '^<sys/'
  30. Priority: 5
  31. - Regex: '^(<|")Qt?[A-Z]'
  32. Priority: 6
  33. - Regex: '^(<|")cmsys/'
  34. Priority: 7
  35. - Regex: '^(<|")cm_'
  36. Priority: 8
  37. - Regex: '^(<|")cm[A-Z][^.]+\.h'
  38. Priority: 9
  39. - Regex: '^<[^.]+\.h'
  40. Priority: 4
  41. - Regex: '^<'
  42. Priority: 1
  43. - Regex: '.*'
  44. Priority: 10
  45. ...