.clang-format 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. ---
  2. Language: Cpp
  3. Standard: c++17
  4. BasedOnStyle: LLVM
  5. IndentWidth: 4
  6. TabWidth: 4
  7. UseTab: ForContinuationAndIndentation # ForIndentation
  8. AccessModifierOffset: -4
  9. ColumnLimit: 135
  10. #AlignConsecutiveAssignments: true
  11. AlignConsecutiveBitFields: true
  12. AlignEscapedNewlines: DontAlign
  13. AlignTrailingComments: true
  14. AllowShortCaseLabelsOnASingleLine: true
  15. AllowShortFunctionsOnASingleLine: Inline
  16. #AllowShortLambdasOnASingleLine: Inline
  17. AllowShortEnumsOnASingleLine: true
  18. AllowAllArgumentsOnNextLine: true
  19. AllowAllParametersOfDeclarationOnNextLine: true
  20. AlwaysBreakAfterDefinitionReturnType: None
  21. AlwaysBreakTemplateDeclarations: Yes
  22. BreakBeforeBraces: Custom
  23. BraceWrapping:
  24. AfterClass: true
  25. AfterEnum: true
  26. AfterStruct: true
  27. AfterUnion: true
  28. AfterFunction: true
  29. SplitEmptyFunction: false
  30. BreakBeforeBinaryOperators: NonAssignment
  31. BreakBeforeTernaryOperators: true
  32. ConstructorInitializerAllOnOneLineOrOnePerLine: true
  33. FixNamespaceComments: true
  34. IncludeBlocks: Regroup
  35. KeepEmptyLinesAtTheStartOfBlocks: false
  36. PointerAlignment: Left
  37. ReflowComments: true
  38. SortIncludes: true