You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

112 lines
3.2 KiB

  1. ---
  2. Language: Cpp
  3. # BasedOnStyle: Google
  4. AccessModifierOffset: -1
  5. AlignAfterOpenBracket: Align
  6. AlignConsecutiveMacros: false
  7. AlignConsecutiveAssignments: true
  8. AlignConsecutiveDeclarations: true
  9. AlignEscapedNewlines: Left
  10. AlignOperands: false
  11. AlignTrailingComments: true
  12. AllowAllArgumentsOnNextLine: true
  13. AllowAllConstructorInitializersOnNextLine: false
  14. AllowAllParametersOfDeclarationOnNextLine: false
  15. AllowShortBlocksOnASingleLine: true
  16. AllowShortCaseLabelsOnASingleLine: true
  17. AllowShortFunctionsOnASingleLine: Empty
  18. AllowShortLambdasOnASingleLine: All
  19. AllowShortIfStatementsOnASingleLine: WithoutElse
  20. AllowShortLoopsOnASingleLine: true
  21. AlwaysBreakAfterDefinitionReturnType: None
  22. AlwaysBreakAfterReturnType: None
  23. AlwaysBreakBeforeMultilineStrings: false
  24. AlwaysBreakTemplateDeclarations: Yes
  25. BinPackArguments: true
  26. BinPackParameters: true
  27. BreakBeforeBinaryOperators: None
  28. BreakBeforeBraces: Attach
  29. BreakBeforeInheritanceComma: false
  30. BreakInheritanceList: BeforeColon
  31. BreakBeforeTernaryOperators: true
  32. BreakConstructorInitializersBeforeComma: false
  33. BreakConstructorInitializers: BeforeColon
  34. BreakAfterJavaFieldAnnotations: false
  35. BreakStringLiterals: true
  36. ColumnLimit: 80
  37. CommentPragmas: "^ IWYU pragma:"
  38. CompactNamespaces: false
  39. ConstructorInitializerAllOnOneLineOrOnePerLine: true
  40. ConstructorInitializerIndentWidth: 4
  41. ContinuationIndentWidth: 4
  42. Cpp11BracedListStyle: true
  43. DerivePointerAlignment: false
  44. DisableFormat: false
  45. ExperimentalAutoDetectBinPacking: false
  46. FixNamespaceComments: true
  47. ForEachMacros:
  48. - foreach
  49. - Q_FOREACH
  50. - BOOST_FOREACH
  51. IncludeBlocks: Preserve
  52. IncludeCategories:
  53. - Regex: '^<ext/.*\.h>'
  54. Priority: 2
  55. - Regex: '^<.*\.h>'
  56. Priority: 1
  57. - Regex: '^<.*'
  58. Priority: 2
  59. - Regex: '.*'
  60. Priority: 3
  61. - Regex: '.*.tpp'
  62. Priority: 4
  63. IncludeIsMainRegex: '([-_](test|unittest))?$'
  64. IndentCaseLabels: true
  65. IndentPPDirectives: None
  66. IndentWidth: 2
  67. IndentWrappedFunctionNames: false
  68. JavaScriptQuotes: Leave
  69. JavaScriptWrapImports: true
  70. KeepEmptyLinesAtTheStartOfBlocks: false
  71. MacroBlockBegin: ""
  72. MacroBlockEnd: ""
  73. MaxEmptyLinesToKeep: 2
  74. NamespaceIndentation: None
  75. # ObjCBinPackProtocolList: Auto
  76. ObjCBlockIndentWidth: 2
  77. ObjCSpaceAfterProperty: false
  78. ObjCSpaceBeforeProtocolList: true
  79. PenaltyBreakAssignment: 25
  80. PenaltyBreakBeforeFirstCallParameter: 19
  81. PenaltyBreakComment: 300
  82. PenaltyBreakFirstLessLess: 120
  83. PenaltyBreakString: 1000
  84. PenaltyBreakTemplateDeclaration: 10
  85. PenaltyExcessCharacter: 600
  86. PenaltyReturnTypeOnItsOwnLine: 50
  87. PointerAlignment: Left
  88. PointerBindsToType: true
  89. ReflowComments: true
  90. SortIncludes: false
  91. SortUsingDeclarations: true
  92. SpaceAfterCStyleCast: false
  93. SpaceAfterLogicalNot: false
  94. SpaceAfterTemplateKeyword: true
  95. SpaceBeforeAssignmentOperators: true
  96. SpaceBeforeCpp11BracedList: false
  97. SpaceBeforeCtorInitializerColon: true
  98. SpaceBeforeInheritanceColon: true
  99. SpaceBeforeParens: ControlStatements
  100. SpaceBeforeRangeBasedForLoopColon: true
  101. SpaceInEmptyParentheses: false
  102. SpacesBeforeTrailingComments: 2
  103. SpacesInAngles: false
  104. SpacesInCStyleCastParentheses: false
  105. SpacesInContainerLiterals: true
  106. SpacesInCStyleCastParentheses: false
  107. SpacesInParentheses: false
  108. SpacesInSquareBrackets: false
  109. Standard: Cpp11
  110. TabWidth: 2
  111. UseTab: Never
  112. ---