.clang-format 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. #AccessModifierOffset: 2
  2. AlignAfterOpenBracket: Align
  3. AlignConsecutiveAssignments: false
  4. #AlignConsecutiveBitFields: false
  5. AlignConsecutiveDeclarations: false
  6. AlignConsecutiveMacros: false
  7. AlignEscapedNewlines: Right
  8. #AlignOperands: AlignAfterOperator
  9. AlignTrailingComments: true
  10. AllowAllArgumentsOnNextLine: false
  11. AllowAllConstructorInitializersOnNextLine: false
  12. AllowAllParametersOfDeclarationOnNextLine: false
  13. AllowShortBlocksOnASingleLine: Empty
  14. AllowShortCaseLabelsOnASingleLine: false
  15. #AllowShortEnumsOnASingleLine: true
  16. AllowShortFunctionsOnASingleLine: Empty
  17. AllowShortIfStatementsOnASingleLine: Never
  18. AllowShortLambdasOnASingleLine: Empty
  19. AllowShortLoopsOnASingleLine: false
  20. AlwaysBreakAfterReturnType: None
  21. AlwaysBreakBeforeMultilineStrings: false
  22. AlwaysBreakTemplateDeclarations: Yes
  23. BinPackArguments: false
  24. BinPackParameters: false
  25. #BitFieldColonSpacing: Both
  26. BreakBeforeBraces: Custom # or Allman
  27. BraceWrapping:
  28. AfterCaseLabel: true
  29. AfterClass: true
  30. AfterControlStatement: Always
  31. AfterEnum: true
  32. AfterFunction: true
  33. AfterNamespace: false
  34. AfterStruct: true
  35. AfterUnion: true
  36. AfterExternBlock: false
  37. BeforeCatch: true
  38. BeforeElse: true
  39. #BeforeLambdaBody: false
  40. #BeforeWhile: false
  41. SplitEmptyFunction: false
  42. SplitEmptyRecord: false
  43. SplitEmptyNamespace: false
  44. BreakBeforeTernaryOperators: true
  45. BreakConstructorInitializers: BeforeComma
  46. BreakStringLiterals: false
  47. ColumnLimit: 0
  48. CompactNamespaces: false
  49. ConstructorInitializerIndentWidth: 2
  50. Cpp11BracedListStyle: true
  51. PointerAlignment: Left
  52. FixNamespaceComments: true
  53. IncludeBlocks: Preserve
  54. #IndentCaseBlocks: false
  55. IndentCaseLabels: true
  56. IndentGotoLabels: false
  57. IndentPPDirectives: BeforeHash
  58. IndentWidth: 4
  59. KeepEmptyLinesAtTheStartOfBlocks: false
  60. MaxEmptyLinesToKeep: 1
  61. NamespaceIndentation: None
  62. ReflowComments: false
  63. SortIncludes: true
  64. SortUsingDeclarations: true
  65. SpaceAfterCStyleCast: false
  66. SpaceAfterLogicalNot: false
  67. SpaceAfterTemplateKeyword: false
  68. SpaceBeforeAssignmentOperators: true
  69. SpaceBeforeCpp11BracedList: false
  70. SpaceBeforeParens: ControlStatements
  71. SpaceBeforeRangeBasedForLoopColon: true
  72. SpaceBeforeSquareBrackets: false
  73. SpaceInEmptyBlock: false
  74. SpaceInEmptyParentheses: false
  75. SpacesBeforeTrailingComments: 2
  76. SpacesInAngles: false
  77. SpacesInCStyleCastParentheses: false
  78. SpacesInConditionalStatement: false
  79. SpacesInContainerLiterals: false
  80. SpacesInParentheses: false
  81. SpacesInSquareBrackets: false
  82. Standard: c++11
  83. TabWidth: 4
  84. UseTab: Never