.clang-format 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. Language: Cpp
  2. AccessModifierOffset: -4
  3. AlignAfterOpenBracket: Align
  4. AlignConsecutiveAssignments: false
  5. AlignConsecutiveDeclarations: false
  6. AlignOperands: true
  7. AlignTrailingComments: false
  8. AllowAllParametersOfDeclarationOnNextLine: false
  9. AllowShortBlocksOnASingleLine: false
  10. AllowShortCaseLabelsOnASingleLine: false
  11. AllowShortFunctionsOnASingleLine: None
  12. AllowShortIfStatementsOnASingleLine: false
  13. AllowShortLoopsOnASingleLine: false
  14. AlwaysBreakAfterDefinitionReturnType: None
  15. AlwaysBreakAfterReturnType: None
  16. AlwaysBreakBeforeMultilineStrings: false
  17. AlwaysBreakTemplateDeclarations: false
  18. BinPackArguments: true
  19. BinPackParameters: true
  20. BraceWrapping:
  21. AfterClass: false
  22. AfterControlStatement: false
  23. AfterEnum: false
  24. AfterFunction: true
  25. AfterNamespace: true
  26. AfterObjCDeclaration: false
  27. AfterStruct: false
  28. AfterUnion: false
  29. AfterExternBlock: false
  30. BeforeCatch: false
  31. BeforeElse: false
  32. IndentBraces: false
  33. SplitEmptyFunction: true
  34. SplitEmptyRecord: true
  35. SplitEmptyNamespace: true
  36. BreakBeforeBinaryOperators: None
  37. BreakBeforeBraces: Custom
  38. BreakBeforeInheritanceComma: false
  39. BreakBeforeTernaryOperators: false
  40. BreakConstructorInitializersBeforeComma: false
  41. BreakConstructorInitializers: BeforeComma
  42. BreakAfterJavaFieldAnnotations: false
  43. BreakStringLiterals: false
  44. ColumnLimit: 80
  45. CommentPragmas: '^ IWYU pragma:'
  46. CompactNamespaces: false
  47. ConstructorInitializerAllOnOneLineOrOnePerLine: false
  48. ConstructorInitializerIndentWidth: 4
  49. ContinuationIndentWidth: 4
  50. Cpp11BracedListStyle: false
  51. DerivePointerAlignment: false
  52. DisableFormat: false
  53. ExperimentalAutoDetectBinPacking: false
  54. FixNamespaceComments: false
  55. ForEachMacros:
  56. - 'list_for_each'
  57. - 'list_for_each_safe'
  58. IncludeBlocks: Preserve
  59. IncludeCategories:
  60. - Regex: '.*'
  61. Priority: 1
  62. IncludeIsMainRegex: '(Test)?$'
  63. IndentCaseLabels: false
  64. IndentPPDirectives: None
  65. IndentWidth: 4
  66. IndentWrappedFunctionNames: false
  67. KeepEmptyLinesAtTheStartOfBlocks: false
  68. MacroBlockBegin: ''
  69. MacroBlockEnd: ''
  70. MaxEmptyLinesToKeep: 1
  71. NamespaceIndentation: None
  72. PointerAlignment: Right
  73. ReflowComments: false
  74. SortIncludes: false
  75. SortUsingDeclarations: false
  76. SpaceAfterCStyleCast: false
  77. SpaceAfterTemplateKeyword: true
  78. SpaceBeforeAssignmentOperators: true
  79. SpaceBeforeCtorInitializerColon: true
  80. SpaceBeforeInheritanceColon: true
  81. SpaceBeforeParens: ControlStatements
  82. SpaceBeforeRangeBasedForLoopColon: true
  83. SpaceInEmptyParentheses: false
  84. SpacesBeforeTrailingComments: 1
  85. SpacesInAngles: false
  86. SpacesInContainerLiterals: false
  87. SpacesInCStyleCastParentheses: false
  88. SpacesInParentheses: false
  89. SpacesInSquareBrackets: false
  90. Standard: Cpp03
  91. TabWidth: 4
  92. UseTab: Never