.clang-format 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. ---
  2. Language: Cpp
  3. BasedOnStyle: LLVM
  4. #AccessModifierOffset: -2
  5. #ConstructorInitializerIndentWidth: 4
  6. #AlignEscapedNewlinesLeft: false
  7. #AlignTrailingComments: true
  8. #AllowAllParametersOfDeclarationOnNextLine: true
  9. #AllowShortBlocksOnASingleLine: false
  10. #AllowShortIfStatementsOnASingleLine: false
  11. #AllowShortLoopsOnASingleLine: false
  12. AllowShortFunctionsOnASingleLine: Inline
  13. #AlwaysBreakTemplateDeclarations: false
  14. #AlwaysBreakBeforeMultilineStrings: false
  15. #BreakBeforeBinaryOperators: false
  16. #BreakBeforeTernaryOperators: true
  17. BreakConstructorInitializersBeforeComma: true
  18. #BinPackParameters: true
  19. ColumnLimit: 120
  20. #ConstructorInitializerAllOnOneLineOrOnePerLine: false
  21. #DerivePointerBinding: false
  22. #ExperimentalAutoDetectBinPacking: false
  23. #IndentCaseLabels: false
  24. #MaxEmptyLinesToKeep: 1
  25. #KeepEmptyLinesAtTheStartOfBlocks: true
  26. #NamespaceIndentation: None
  27. #ObjCSpaceAfterProperty: false
  28. #ObjCSpaceBeforeProtocolList: true
  29. #PenaltyBreakBeforeFirstCallParameter: 19
  30. #PenaltyBreakComment: 300
  31. #PenaltyBreakString: 1000
  32. #PenaltyBreakFirstLessLess: 120
  33. #PenaltyExcessCharacter: 1000000
  34. #PenaltyReturnTypeOnItsOwnLine: 60
  35. #PointerBindsToType: false
  36. #SpacesBeforeTrailingComments: 1
  37. #Cpp11BracedListStyle: true
  38. #Standard: Cpp11
  39. IndentWidth: 4
  40. TabWidth: 4
  41. UseTab: ForIndentation
  42. BreakBeforeBraces: Allman
  43. #IndentFunctionDeclarationAfterType: false
  44. #SpacesInParentheses: false
  45. #SpacesInAngles: false
  46. #SpaceInEmptyParentheses: false
  47. #SpacesInCStyleCastParentheses: false
  48. #SpacesInContainerLiterals: true
  49. #SpaceBeforeAssignmentOperators: true
  50. #ContinuationIndentWidth: 4
  51. #CommentPragmas: '^ IWYU pragma:'
  52. #ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
  53. #SpaceBeforeParens: ControlStatements
  54. ...