.clang-format 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. ---
  2. Language: Cpp
  3. BasedOnStyle: LLVM
  4. AccessModifierOffset: -4
  5. AlignConsecutiveAssignments: false
  6. AlignConsecutiveDeclarations: false
  7. AlignOperands: AlignAfterOperator
  8. AlignTrailingComments: true
  9. AllowAllArgumentsOnNextLine: false
  10. AllowAllConstructorInitializersOnNextLine: false
  11. AllowAllParametersOfDeclarationOnNextLine: false
  12. AllowShortLambdasOnASingleLine: Empty
  13. AllowShortBlocksOnASingleLine: false
  14. AllowShortCaseLabelsOnASingleLine: false
  15. AllowShortFunctionsOnASingleLine: None
  16. AllowShortIfStatementsOnASingleLine: false
  17. AllowShortLoopsOnASingleLine: false
  18. AlwaysBreakAfterReturnType: None
  19. AlwaysBreakTemplateDeclarations: Yes
  20. BinPackArguments: false
  21. BinPackParameters: false
  22. BraceWrapping:
  23. AfterCaseLabel: true
  24. AfterClass: true
  25. AfterControlStatement: true
  26. AfterEnum: true
  27. AfterFunction: true
  28. AfterNamespace: false
  29. AfterStruct: true
  30. AfterUnion: true
  31. AfterExternBlock: false
  32. BeforeCatch: true
  33. BeforeElse: true
  34. BeforeLambdaBody: true
  35. IndentBraces: false
  36. SplitEmptyFunction: false
  37. SplitEmptyRecord: false
  38. SplitEmptyNamespace: false
  39. BreakBeforeBinaryOperators: NonAssignment
  40. BreakBeforeBraces: Custom
  41. BreakBeforeTernaryOperators: true
  42. BreakConstructorInitializers: BeforeColon
  43. ColumnLimit: 120
  44. CommentPragmas: "^ parasoft"
  45. CompactNamespaces: false
  46. ConstructorInitializerAllOnOneLineOrOnePerLine: true
  47. ContinuationIndentWidth: 4
  48. FixNamespaceComments: true
  49. IncludeBlocks: Preserve
  50. IncludeCategories:
  51. - Regex: '^"[A-Za-z0-9_]+\.(cu)?h(pp)?'
  52. Priority: 1
  53. - Regex: '^"[A-Za-z0-9_]+(\/[A-Za-z0-9_]+)+\.(cu)?h(pp)?"'
  54. Priority: 2
  55. - Regex: "^<(cstdlib|csignal|csetjmp|cstdarg|typeinfo|typeindex|type_traits|bitset|functional|utility|ctime|chrono|cstddef|initializer_list|tuple|any|new|memory|scoped_allocator|climits|cfloat|cstdint|cinttypes|limits|exception|stdexcept|cassert|system_error|cerrno|cctype|cwctype|cstring|cwchar|cuchar|string|array|vector|deque|list|forward_list|set|map|unordered_set|unordered_map|stack|queue|iterator|algorithm|cmath|complex|valarray|random|numeric|ratio|cfenv|locale|clocale|codecvt|iosfwd|ios|istream|ostream|iostream|fstream|sstream|strstream|iomanip|streambuf|cstdio|regex|atomic|thread|mutex|shared_mutex|future|condition_variable)>"
  56. Priority: 4
  57. - Regex: "^<.*>"
  58. Priority: 5
  59. IncludeIsMainRegex: "([-_](test|unittest))?$"
  60. IndentCaseBlocks: true
  61. IndentCaseLabels: true
  62. IndentPPDirectives: None
  63. IndentWidth: 4
  64. IndentWrappedFunctionNames: false
  65. MaxEmptyLinesToKeep: 2
  66. NamespaceIndentation: None
  67. PenaltyReturnTypeOnItsOwnLine: 200
  68. PointerAlignment: Right
  69. SpaceAfterCStyleCast: false
  70. SpaceAfterTemplateKeyword: false
  71. SpaceBeforeAssignmentOperators: true
  72. SpaceBeforeCtorInitializerColon: false
  73. SpaceBeforeInheritanceColon: true
  74. SpaceBeforeParens: ControlStatements
  75. SpaceBeforeRangeBasedForLoopColon: true
  76. SpaceInEmptyParentheses: false
  77. SpacesBeforeTrailingComments: 1
  78. SpacesInAngles: false
  79. SpacesInCStyleCastParentheses: false
  80. SpacesInParentheses: false
  81. SpacesInSquareBrackets: false
  82. Standard: c++14
  83. TabWidth: 4
  84. UseTab: Never
  85. UseCRLF: true