.clang-format 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. AccessModifierOffset: -1
  2. AlignAfterOpenBracket: AlwaysBreak
  3. AlignConsecutiveAssignments: false
  4. AlignConsecutiveDeclarations: false
  5. AlignEscapedNewlinesLeft: true
  6. AlignOperands: false
  7. AlignTrailingComments: false
  8. AllowAllParametersOfDeclarationOnNextLine: false
  9. AllowShortBlocksOnASingleLine: false
  10. AllowShortCaseLabelsOnASingleLine: false
  11. AllowShortFunctionsOnASingleLine: Empty
  12. AllowShortIfStatementsOnASingleLine: false
  13. AllowShortLoopsOnASingleLine: false
  14. AlwaysBreakAfterReturnType: None
  15. AlwaysBreakBeforeMultilineStrings: true
  16. AlwaysBreakTemplateDeclarations: true
  17. BinPackArguments: false
  18. BinPackParameters: false
  19. BraceWrapping:
  20. AfterClass: false
  21. AfterControlStatement: false
  22. AfterEnum: false
  23. AfterFunction: false
  24. AfterNamespace: false
  25. AfterObjCDeclaration: false
  26. AfterStruct: false
  27. AfterUnion: false
  28. BeforeCatch: false
  29. BeforeElse: false
  30. IndentBraces: false
  31. BreakBeforeBinaryOperators: None
  32. BreakBeforeBraces: Attach
  33. BreakBeforeTernaryOperators: true
  34. BreakConstructorInitializersBeforeComma: false
  35. BreakAfterJavaFieldAnnotations: false
  36. BreakStringLiterals: false
  37. ColumnLimit: 80
  38. CommentPragmas: '^ IWYU pragma:'
  39. ConstructorInitializerAllOnOneLineOrOnePerLine: true
  40. ConstructorInitializerIndentWidth: 4
  41. ContinuationIndentWidth: 4
  42. Cpp11BracedListStyle: true
  43. DerivePointerAlignment: false
  44. DisableFormat: false
  45. ForEachMacros: [ FOR_EACH, FOR_EACH_R, FOR_EACH_RANGE, ]
  46. IncludeCategories:
  47. - Regex: '^<.*\.h(pp)?>'
  48. Priority: 1
  49. - Regex: '^<.*'
  50. Priority: 2
  51. - Regex: '.*'
  52. Priority: 3
  53. IndentCaseLabels: true
  54. IndentWidth: 2
  55. IndentWrappedFunctionNames: false
  56. KeepEmptyLinesAtTheStartOfBlocks: false
  57. MacroBlockBegin: ''
  58. MacroBlockEnd: ''
  59. MaxEmptyLinesToKeep: 1
  60. NamespaceIndentation: None
  61. ObjCBlockIndentWidth: 2
  62. ObjCSpaceAfterProperty: false
  63. ObjCSpaceBeforeProtocolList: false
  64. PenaltyBreakBeforeFirstCallParameter: 1
  65. PenaltyBreakComment: 300
  66. PenaltyBreakFirstLessLess: 120
  67. PenaltyBreakString: 1000
  68. PenaltyExcessCharacter: 1000000
  69. PenaltyReturnTypeOnItsOwnLine: 200
  70. PointerAlignment: Left
  71. ReflowComments: true
  72. SortIncludes: true
  73. SpaceAfterCStyleCast: false
  74. SpaceBeforeAssignmentOperators: true
  75. SpaceBeforeParens: ControlStatements
  76. SpaceInEmptyParentheses: false
  77. SpacesBeforeTrailingComments: 1
  78. SpacesInAngles: false
  79. SpacesInContainerLiterals: true
  80. SpacesInCStyleCastParentheses: false
  81. SpacesInParentheses: false
  82. SpacesInSquareBrackets: false
  83. Standard: Cpp11
  84. TabWidth: 8
  85. UseTab: Never