.clang-format 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. ---
  2. Language: Cpp
  3. # BasedOnStyle: Google
  4. AccessModifierOffset: -2
  5. AlignAfterOpenBracket: true
  6. AlignEscapedNewlinesLeft: true
  7. AlignOperands: true
  8. AlignTrailingComments: true
  9. AllowAllParametersOfDeclarationOnNextLine: true
  10. AllowShortBlocksOnASingleLine: false
  11. AllowShortCaseLabelsOnASingleLine: false
  12. AllowShortIfStatementsOnASingleLine: false
  13. AllowShortLoopsOnASingleLine: false
  14. AllowShortFunctionsOnASingleLine: Empty
  15. AlwaysBreakAfterDefinitionReturnType: false
  16. AlwaysBreakTemplateDeclarations: true
  17. AlwaysBreakBeforeMultilineStrings: true
  18. BreakBeforeBinaryOperators: None
  19. BreakBeforeTernaryOperators: true
  20. BreakConstructorInitializersBeforeComma: false
  21. BinPackParameters: true
  22. BinPackArguments: true
  23. ColumnLimit: 500
  24. ConstructorInitializerAllOnOneLineOrOnePerLine: false
  25. ConstructorInitializerIndentWidth: 8
  26. DerivePointerAlignment: false
  27. ExperimentalAutoDetectBinPacking: false
  28. IndentCaseLabels: true
  29. IndentWrappedFunctionNames: false
  30. IndentFunctionDeclarationAfterType: false
  31. MaxEmptyLinesToKeep: 2
  32. KeepEmptyLinesAtTheStartOfBlocks: false
  33. NamespaceIndentation: None
  34. PenaltyBreakBeforeFirstCallParameter: 1
  35. PenaltyBreakComment: 300
  36. PenaltyBreakString: 1000
  37. PenaltyBreakFirstLessLess: 120
  38. PenaltyExcessCharacter: 1000000
  39. PenaltyReturnTypeOnItsOwnLine: 200
  40. PointerAlignment: Left
  41. SpacesBeforeTrailingComments: 1
  42. Cpp11BracedListStyle: true
  43. Standard: Auto
  44. IndentWidth: 4
  45. TabWidth: 8
  46. UseTab: Never
  47. BreakBeforeBraces: Attach
  48. SpacesInParentheses: false
  49. SpacesInSquareBrackets: false
  50. SpacesInAngles: false
  51. SpaceInEmptyParentheses: false
  52. SpacesInCStyleCastParentheses: false
  53. SpaceAfterCStyleCast: true
  54. SpacesInContainerLiterals: true
  55. SpaceBeforeAssignmentOperators: true
  56. ContinuationIndentWidth: 8
  57. CommentPragmas: '^ IWYU pragma:'
  58. SpaceBeforeParens: ControlStatements
  59. ...