.clang-format 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. ---
  2. Language: Cpp
  3. AccessModifierOffset: -4
  4. AlignAfterOpenBracket: Align
  5. AlignTrailingComments: true
  6. AllowAllParametersOfDeclarationOnNextLine: false
  7. AllowShortBlocksOnASingleLine: false
  8. AllowShortCaseLabelsOnASingleLine: false
  9. AllowShortFunctionsOnASingleLine: false
  10. AllowShortIfStatementsOnASingleLine: false
  11. AllowShortLoopsOnASingleLine: false
  12. AlwaysBreakBeforeMultilineStrings: false
  13. AlwaysBreakTemplateDeclarations: true
  14. BinPackArguments: true
  15. BinPackParameters: true
  16. BraceWrapping:
  17. AfterClass: false
  18. AfterControlStatement: false
  19. AfterEnum: false
  20. AfterFunction: true
  21. AfterNamespace: false
  22. AfterObjCDeclaration: false
  23. AfterStruct: false
  24. AfterUnion: false
  25. AfterExternBlock: false
  26. BeforeCatch: false
  27. BeforeElse: false
  28. IndentBraces: false
  29. SplitEmptyFunction: true
  30. SplitEmptyRecord: true
  31. SplitEmptyNamespace: true
  32. BreakBeforeBinaryOperators: None
  33. BreakBeforeBraces: WebKit
  34. AlignEscapedNewlines: Left
  35. BreakBeforeTernaryOperators: true
  36. BreakStringLiterals: false
  37. ColumnLimit: 120
  38. CommentPragmas: '^lint|^\*<'
  39. CompactNamespaces: false
  40. ConstructorInitializerAllOnOneLineOrOnePerLine: true
  41. ConstructorInitializerIndentWidth: 4
  42. ContinuationIndentWidth: 4
  43. Cpp11BracedListStyle: false
  44. DerivePointerAlignment: false
  45. PointerAlignment: Right
  46. DisableFormat: false
  47. ExperimentalAutoDetectBinPacking: false
  48. FixNamespaceComments: true
  49. IndentCaseLabels: true
  50. IndentPPDirectives: None
  51. IndentWidth: 4
  52. IndentWrappedFunctionNames: false
  53. MacroBlockIndentation: false
  54. KeepEmptyLinesAtTheStartOfBlocks: false
  55. MacroBlockBegin: "\
  56. ^ *PROG *$|\
  57. ^ *PROC *$"
  58. MacroBlockEnd: "\
  59. ^ *END_PROG *$|\
  60. ^ *END_PROC *$|\
  61. ^ *END_DEFAULT_PROC *$"
  62. TryBlock: "\
  63. ^ *MIT_BEGIN *$|\
  64. ^ *MIT_CATCH_ALL *$|\
  65. ^ *__TRY *$|\
  66. ^ *__TR_CATCH *$|\
  67. ^ *__TR_TRY *$"
  68. CatchBlock: "\
  69. ^ *__CATCH *$"
  70. MaxEmptyLinesToKeep: 1
  71. NamespaceIndentation: None
  72. PenaltyBreakBeforeFirstCallParameter: 120
  73. PenaltyBreakComment: 30
  74. PenaltyBreakString: 1000
  75. PenaltyBreakFirstLessLess: 120
  76. PenaltyExcessCharacter: 100
  77. PenaltyReturnTypeOnItsOwnLine: 60
  78. PenaltyBreakAssignment: 30
  79. SortIncludes: false
  80. SpaceAfterCStyleCast: false
  81. SpaceAfterTemplateKeyword: true
  82. SpaceBeforeAssignmentOperators: true
  83. SpaceBeforeParens: ControlStatements
  84. SpaceInEmptyParentheses: false
  85. SpacesBeforeTrailingComments: 2
  86. SpacesInAngles: false
  87. SpaceAfterVosVoid: false
  88. VoidPragmas: '^JsVoid|^VOS_VOID|^VOID'
  89. SpacesInCStyleCastParentheses: false
  90. SpacesInParentheses: false
  91. SpacesInSquareBrackets: false
  92. Standard: Cpp03
  93. TabWidth: 4
  94. UseTab: Never
  95. ...