.clang-format 2.5 KB

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