.clang-format 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. # .clang-format
  2. Language: Cpp
  3. AccessModifierOffset: -2
  4. AlignAfterOpenBracket: Align
  5. AlignConsecutiveAssignments: false
  6. AlignConsecutiveDeclarations: false
  7. AlignConsecutiveMacros:
  8. Enabled: true
  9. AcrossEmptyLines: true
  10. AcrossComments: true
  11. AlignOperands: true
  12. AlignTrailingComments: true
  13. AllowAllParametersOfDeclarationOnNextLine: false
  14. AllowShortBlocksOnASingleLine: false
  15. AllowShortCaseLabelsOnASingleLine: false
  16. AllowShortFunctionsOnASingleLine: Inline
  17. AllowShortIfStatementsOnASingleLine: true
  18. AllowShortLoopsOnASingleLine: false
  19. AlwaysBreakAfterDefinitionReturnType: None
  20. AlwaysBreakAfterReturnType: None
  21. AlwaysBreakBeforeMultilineStrings: false
  22. AlwaysBreakTemplateDeclarations: No
  23. BinPackArguments: true
  24. BinPackParameters: true
  25. BraceWrapping:
  26. AfterClass: false
  27. AfterControlStatement: false
  28. AfterEnum: false
  29. AfterFunction: false
  30. AfterNamespace: false
  31. AfterObjCDeclaration: false
  32. AfterStruct: false
  33. AfterUnion: false
  34. BeforeCatch: true
  35. BeforeElse: true
  36. IndentBraces: false
  37. BreakBeforeBinaryOperators: None
  38. BreakBeforeBraces: Attach
  39. BreakBeforeTernaryOperators: true
  40. BreakConstructorInitializersBeforeComma: false
  41. ColumnLimit: 110
  42. CommentPragmas: '^ IWYU pragma:'
  43. CompactNamespaces: false
  44. ConstructorInitializerAllOnOneLineOrOnePerLine: false
  45. Cpp11BracedListStyle: false
  46. DerivePointerAlignment: false
  47. DisableFormat: false
  48. IncludeBlocks: Regroup
  49. IndentCaseLabels: false
  50. IndentPPDirectives: None
  51. IndentWidth: 2
  52. IndentWrappedFunctionNames: false
  53. KeepEmptyLinesAtTheStartOfBlocks: true
  54. MacroBlockBegin: ''
  55. MacroBlockEnd: ''
  56. MaxEmptyLinesToKeep: 1
  57. NamespaceIndentation: None
  58. ObjCBinPackProtocolList: Auto
  59. PenaltyBreakBeforeFirstCallParameter: 19
  60. PenaltyBreakComment: 300
  61. PenaltyBreakFirstLessLess: 120
  62. PenaltyBreakString: 1000
  63. PenaltyExcessCharacter: 100000
  64. PenaltyReturnTypeOnItsOwnLine: 60
  65. PointerAlignment: Right
  66. ReflowComments: true
  67. SortIncludes: true
  68. SpaceAfterCStyleCast: false
  69. SpaceAfterTemplateKeyword: true
  70. SpaceBeforeAssignmentOperators: true
  71. SpaceBeforeCtorInitializerColon: true
  72. SpaceBeforeInheritanceColon: true
  73. SpaceBeforeParens: ControlStatements
  74. SpaceInEmptyParentheses: false
  75. SpacesBeforeTrailingComments: 1
  76. SpacesInAngles: false
  77. SpacesInContainerLiterals: false
  78. SpacesInCStyleCastParentheses: false
  79. SpacesInParentheses: false
  80. SpacesInSquareBrackets: false
  81. Standard: Auto
  82. TabWidth: 2
  83. UseTab: Never
  84. AlignEscapedNewlines: LeftWithLastLine