.clang-format 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. ---
  2. BasedOnStyle: Google
  3. AccessModifierOffset: '-2'
  4. AlignAfterOpenBracket: DontAlign
  5. AlignConsecutiveAssignments: 'true'
  6. AlignConsecutiveDeclarations: 'false'
  7. AlignEscapedNewlines: Left
  8. AlignTrailingComments: 'true'
  9. AllowAllParametersOfDeclarationOnNextLine: 'false'
  10. AllowShortBlocksOnASingleLine: 'false'
  11. AllowShortCaseLabelsOnASingleLine: 'false'
  12. AllowShortFunctionsOnASingleLine: InlineOnly
  13. AllowShortIfStatementsOnASingleLine: 'true'
  14. AllowShortLoopsOnASingleLine: 'true'
  15. AlwaysBreakAfterDefinitionReturnType: None
  16. AlwaysBreakAfterReturnType: None
  17. AlwaysBreakBeforeMultilineStrings: 'true'
  18. AlwaysBreakTemplateDeclarations: 'false'
  19. BinPackParameters: 'true'
  20. BreakAfterJavaFieldAnnotations: 'false'
  21. BreakBeforeBinaryOperators: None
  22. BreakBeforeBraces: Attach
  23. BreakBeforeInheritanceComma: 'false'
  24. BreakBeforeTernaryOperators: 'false'
  25. BreakConstructorInitializers: BeforeColon
  26. BreakStringLiterals: 'false'
  27. ColumnLimit: '0'
  28. CompactNamespaces: 'true'
  29. ConstructorInitializerAllOnOneLineOrOnePerLine: 'true'
  30. ConstructorInitializerIndentWidth: '4'
  31. ContinuationIndentWidth: '4'
  32. Cpp11BracedListStyle: 'false'
  33. DerivePointerAlignment: 'false'
  34. FixNamespaceComments: 'true'
  35. IndentCaseLabels: 'true'
  36. IndentWidth: '4'
  37. IndentWrappedFunctionNames: 'false'
  38. JavaScriptQuotes: Single
  39. JavaScriptWrapImports: 'false'
  40. KeepEmptyLinesAtTheStartOfBlocks: 'false'
  41. MaxEmptyLinesToKeep: '1'
  42. NamespaceIndentation: All
  43. ObjCBlockIndentWidth: '4'
  44. ObjCSpaceAfterProperty: 'false'
  45. ObjCSpaceBeforeProtocolList: 'false'
  46. PointerAlignment: Middle
  47. SortIncludes: 'false'
  48. SortUsingDeclarations: 'true'
  49. SpaceAfterCStyleCast: 'false'
  50. SpaceAfterTemplateKeyword: 'false'
  51. SpaceBeforeAssignmentOperators: 'true'
  52. SpaceBeforeParens: Never
  53. SpaceInEmptyParentheses: 'false'
  54. SpacesBeforeTrailingComments: '4'
  55. SpacesInAngles: 'false'
  56. SpacesInCStyleCastParentheses: 'false'
  57. SpacesInContainerLiterals: 'false'
  58. SpacesInParentheses: 'false'
  59. SpacesInSquareBrackets: 'false'
  60. TabWidth: '4'
  61. UseTab: Never
  62. ...