.clang-format 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. Language: Cpp
  2. # BasedOnStyle: LLVM
  3. ColumnLimit: 120
  4. SortIncludes: false
  5. TabWidth: 4
  6. IndentWidth: 4
  7. UseTab: Never
  8. AccessModifierOffset: -4
  9. ContinuationIndentWidth: 4
  10. IndentCaseBlocks: false
  11. IndentCaseLabels: false
  12. IndentGotoLabels: true
  13. IndentWrappedFunctionNames: false
  14. SortUsingDeclarations: false
  15. NamespaceIndentation: All
  16. SpaceAfterCStyleCast: false
  17. SpaceAfterLogicalNot: false
  18. SpaceAfterTemplateKeyword: true
  19. SpaceBeforeAssignmentOperators: true
  20. SpaceBeforeCaseColon: false
  21. SpaceBeforeCpp11BracedList: false
  22. SpaceBeforeCtorInitializerColon: true
  23. SpaceBeforeInheritanceColon: true
  24. SpaceBeforeRangeBasedForLoopColon: true
  25. SpaceBeforeSquareBrackets: false
  26. SpaceInEmptyBlock: false
  27. SpaceInEmptyParentheses: false
  28. SpacesInAngles: false
  29. SpacesInCStyleCastParentheses: false
  30. SpacesInConditionalStatement: false
  31. SpacesInParentheses: false
  32. SpacesInSquareBrackets: false
  33. AllowShortCaseLabelsOnASingleLine: false
  34. AllowShortEnumsOnASingleLine: true
  35. AllowShortFunctionsOnASingleLine: All
  36. AllowShortIfStatementsOnASingleLine: Never
  37. AllowShortLambdasOnASingleLine: All
  38. AllowShortLoopsOnASingleLine: false
  39. AlwaysBreakTemplateDeclarations: MultiLine
  40. BinPackArguments: true
  41. BinPackParameters: true
  42. BreakBeforeTernaryOperators: true
  43. BreakConstructorInitializers: BeforeColon
  44. BreakInheritanceList: BeforeColon
  45. BreakStringLiterals: true
  46. InsertBraces: false
  47. IndentExternBlock: NoIndent
  48. BreakBeforeBraces: Custom
  49. BraceWrapping:
  50. AfterCaseLabel: false
  51. AfterClass: false
  52. AfterControlStatement: Never
  53. AfterEnum: false
  54. AfterFunction: false
  55. AfterNamespace: false
  56. AfterStruct: false
  57. AfterUnion: false
  58. AfterExternBlock: false
  59. BeforeCatch: false
  60. BeforeElse: false
  61. ReflowComments: true
  62. MaxEmptyLinesToKeep: 2