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
5 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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 brackets inside of a case
  26. AfterCaseLabel: true
  27. # Wrap class definition.
  28. AfterClass: true
  29. # Wrap control statements
  30. AfterControlStatement: true
  31. # Wrap enum definitions.
  32. AfterEnum: true
  33. # Wrap function definitions.
  34. AfterFunction: true
  35. # Wrap namespace definitions.
  36. AfterNamespace: true
  37. # Wrap struct definitions.
  38. AfterStruct: true
  39. # Wrap union definitions.
  40. AfterUnion: true
  41. # Wrap extern blocks.
  42. AfterExternBlock: false
  43. # Wrap before catch.
  44. BeforeCatch: true
  45. # Wrap before else.
  46. BeforeElse: true
  47. # Indent the wrapped braces themselves.
  48. IndentBraces: false
  49. # If false, empty function body can be put on a single line.
  50. SplitEmptyFunction: false
  51. # If false, empty record (e.g. class, struct or union) body can be put on a single line.
  52. SplitEmptyRecord: false
  53. # If false, empty namespace body can be put on a single line.
  54. SplitEmptyNamespace: false