.clang-format 2.6 KB

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