You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

.clang-format 1.7 kB

5 years ago
5 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. BasedOnStyle: LLVM
  2. # If true, clang-format will attempt to re-flow comments
  3. ReflowComments: false
  4. # The column limit.
  5. ColumnLimit: 100
  6. # Indent width for line continuations.
  7. ContinuationIndentWidth: 4
  8. # The number of columns to use for indentation.
  9. IndentWidth: 8
  10. # The number of columns used for tab stops.
  11. TabWidth: 8
  12. UseTab: ForIndentation
  13. # Options for aligning backslashes in escaped newlines.
  14. AlignEscapedNewlines: Left
  15. # Short Block Style
  16. AllowShortBlocksOnASingleLine: true
  17. # If true, short case labels will be contracted to a single line.
  18. AllowShortCaseLabelsOnASingleLine: true
  19. # Dependent on the value, int f() { return 0; } can be put on a single line.
  20. AllowShortFunctionsOnASingleLine: Empty
  21. # The brace breaking style to use.
  22. BreakBeforeBraces: Custom
  23. # Control of individual brace wrapping cases.
  24. BraceWrapping:
  25. # Wrap class definition.
  26. AfterClass: true
  27. # Wrap control statements
  28. AfterControlStatement: true
  29. # Wrap enum definitions.
  30. AfterEnum: true
  31. # Wrap function definitions.
  32. AfterFunction: true
  33. # Wrap namespace definitions.
  34. AfterNamespace: true
  35. # Wrap struct definitions.
  36. AfterStruct: true
  37. # Wrap union definitions.
  38. AfterUnion: true
  39. # Wrap extern blocks.
  40. AfterExternBlock: false
  41. # Wrap before catch.
  42. BeforeCatch: true
  43. # Wrap before else.
  44. BeforeElse: true
  45. # Indent the wrapped braces themselves.
  46. IndentBraces: false
  47. # If false, empty function body can be put on a single line.
  48. SplitEmptyFunction: false
  49. # If false, empty record (e.g. class, struct or union) body can be put on a single line.
  50. SplitEmptyRecord: false
  51. # If false, empty namespace body can be put on a single line.
  52. SplitEmptyNamespace: false