.clang-format 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. ---
  2. BasedOnStyle: LLVM
  3. # Commented out parameters are those with the same value as base LLVM style
  4. # We can uncomment them if we want to change their value, or enforce the
  5. # chosen value in case the base style changes (initial sync: Clang 3.9.1).
  6. ...
  7. Language: Cpp
  8. AccessModifierOffset: -4
  9. AlignAfterOpenBracket: DontAlign
  10. # AlignConsecutiveAssignments: false
  11. # AlignConsecutiveDeclarations: false
  12. # AlignEscapedNewlinesLeft: false
  13. # AlignOperands: true
  14. AlignTrailingComments: false
  15. AllowAllParametersOfDeclarationOnNextLine: false
  16. # AllowShortBlocksOnASingleLine: false
  17. AllowShortCaseLabelsOnASingleLine: true
  18. AllowShortFunctionsOnASingleLine: Inline
  19. AllowShortIfStatementsOnASingleLine: true
  20. # AllowShortLoopsOnASingleLine: false
  21. # AlwaysBreakAfterDefinitionReturnType: None
  22. # AlwaysBreakAfterReturnType: None
  23. # AlwaysBreakBeforeMultilineStrings: false
  24. # AlwaysBreakTemplateDeclarations: false
  25. # BinPackArguments: true
  26. # BinPackParameters: true
  27. # BraceWrapping:
  28. # AfterClass: false
  29. # AfterControlStatement: false
  30. # AfterEnum: false
  31. # AfterFunction: false
  32. # AfterNamespace: false
  33. # AfterObjCDeclaration: false
  34. # AfterStruct: false
  35. # AfterUnion: false
  36. # BeforeCatch: false
  37. # BeforeElse: false
  38. # IndentBraces: false
  39. # BreakBeforeBinaryOperators: None
  40. # BreakBeforeBraces: Attach
  41. BreakBeforeTernaryOperators: false
  42. # BreakConstructorInitializersBeforeComma: false
  43. # BreakAfterJavaFieldAnnotations: false
  44. # BreakStringLiterals: true
  45. ColumnLimit: 0
  46. # CommentPragmas: '^ IWYU pragma:'
  47. # ConstructorInitializerAllOnOneLineOrOnePerLine: false
  48. # ConstructorInitializerIndentWidth: 4
  49. ContinuationIndentWidth: 8
  50. Cpp11BracedListStyle: false
  51. # DerivePointerAlignment: false
  52. # DisableFormat: false
  53. # ExperimentalAutoDetectBinPacking: false
  54. # ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
  55. IncludeCategories:
  56. - Regex: '".*"'
  57. Priority: 1
  58. - Regex: '^<.*\.h>'
  59. Priority: 2
  60. - Regex: '^<.*'
  61. Priority: 3
  62. # IncludeIsMainRegex: '$'
  63. IndentCaseLabels: true
  64. IndentWidth: 4
  65. # IndentWrappedFunctionNames: false
  66. # JavaScriptQuotes: Leave
  67. # JavaScriptWrapImports: true
  68. # KeepEmptyLinesAtTheStartOfBlocks: true
  69. # MacroBlockBegin: ''
  70. # MacroBlockEnd: ''
  71. # MaxEmptyLinesToKeep: 1
  72. # NamespaceIndentation: None
  73. ObjCBlockIndentWidth: 4
  74. # ObjCSpaceAfterProperty: false
  75. # ObjCSpaceBeforeProtocolList: true
  76. # PenaltyBreakBeforeFirstCallParameter: 19
  77. # PenaltyBreakComment: 300
  78. # PenaltyBreakFirstLessLess: 120
  79. # PenaltyBreakString: 1000
  80. # PenaltyExcessCharacter: 1000000
  81. # PenaltyReturnTypeOnItsOwnLine: 60
  82. PointerAlignment: Right
  83. # ReflowComments: true
  84. SortIncludes: true
  85. # SpaceAfterCStyleCast: false
  86. # SpaceBeforeAssignmentOperators: true
  87. # SpaceBeforeParens: ControlStatements
  88. # SpaceInEmptyParentheses: false
  89. # SpacesBeforeTrailingComments: 1
  90. # SpacesInAngles: false
  91. # SpacesInContainerLiterals: true
  92. # SpacesInCStyleCastParentheses: false
  93. # SpacesInParentheses: false
  94. # SpacesInSquareBrackets: false
  95. Standard: Cpp03
  96. TabWidth: 4
  97. UseTab: Always
  98. ...