.clang-format 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # using [clang-formt-12 options](https://releases.llvm.org/12.0.0/tools/clang/docs/ClangFormatStyleOptions.html)
  2. RawStringFormats:
  3. - Language: Cpp
  4. Delimiters:
  5. - c
  6. - C
  7. - cc
  8. - CC
  9. - cpp
  10. - Cpp
  11. - CPP
  12. - 'c++'
  13. - 'C++'
  14. - h
  15. - hpp
  16. CanonicalDelimiter: ''
  17. BasedOnStyle: Mozilla
  18. Language: Cpp
  19. BasedOnStyle: Mozilla
  20. # 6.1
  21. IndentWidth: 4
  22. ContinuationIndentWidth: 4
  23. # 6.2
  24. TabWidth: 4
  25. UseTab: Never
  26. # 6.3
  27. ColumnLimit: 80
  28. # 6.9
  29. AlignAfterOpenBracket: Align
  30. BinPackArguments: true
  31. BinPackParameters: true
  32. # 6.10
  33. BreakBeforeBraces: Custom
  34. BraceWrapping:
  35. AfterCaseLabel: true
  36. AfterClass: true
  37. AfterControlStatement: false
  38. AfterEnum: false
  39. AfterFunction: true
  40. AfterNamespace: false
  41. AfterObjCDeclaration: false
  42. AfterStruct: false
  43. AfterUnion: false
  44. AfterExternBlock: false
  45. BeforeCatch: false
  46. BeforeElse: true
  47. IndentBraces: false
  48. SplitEmptyFunction: true
  49. SplitEmptyRecord: false
  50. SplitEmptyNamespace: true
  51. # 6.27
  52. BreakBeforeBinaryOperators: NonAssignment
  53. # additional
  54. AlignEscapedNewlines: Left
  55. AllowAllParametersOfDeclarationOnNextLine: false
  56. AllowAllArgumentsOnNextLine: false
  57. PointerAlignment: Right
  58. SpaceAroundPointerQualifiers: After
  59. SortIncludes: false