.clang-format 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. ---
  2. Language: Cpp
  3. AccessModifierOffset: -2
  4. AlignAfterOpenBracket: Align
  5. AlignConsecutiveAssignments: false
  6. AlignConsecutiveDeclarations: false
  7. AlignEscapedNewlines: Right
  8. AlignOperands: true
  9. AlignTrailingComments: true
  10. AllowAllParametersOfDeclarationOnNextLine: true
  11. AllowShortBlocksOnASingleLine: false
  12. AllowShortCaseLabelsOnASingleLine: false
  13. AllowShortFunctionsOnASingleLine: All
  14. AllowShortIfStatementsOnASingleLine: false
  15. AllowShortLoopsOnASingleLine: false
  16. AlwaysBreakAfterDefinitionReturnType: None
  17. AlwaysBreakAfterReturnType: None
  18. AlwaysBreakBeforeMultilineStrings: false
  19. AlwaysBreakTemplateDeclarations: false
  20. BinPackArguments: true
  21. BinPackParameters: true
  22. BraceWrapping:
  23. AfterClass: false
  24. AfterControlStatement: false
  25. AfterEnum: false
  26. AfterFunction: true
  27. AfterNamespace: false
  28. AfterObjCDeclaration: false
  29. AfterStruct: false
  30. AfterUnion: false
  31. BeforeCatch: true
  32. BeforeElse: true
  33. IndentBraces: false
  34. SplitEmptyFunction: true
  35. SplitEmptyRecord: true
  36. SplitEmptyNamespace: true
  37. BreakBeforeBinaryOperators: None
  38. BreakBeforeBraces: Stroustrup
  39. BreakBeforeInheritanceComma: false
  40. BreakBeforeTernaryOperators: true
  41. BreakConstructorInitializersBeforeComma: false
  42. BreakConstructorInitializers: BeforeColon
  43. BreakAfterJavaFieldAnnotations: false
  44. BreakStringLiterals: true
  45. ColumnLimit: 80
  46. CommentPragmas: '^ IWYU pragma:'
  47. CompactNamespaces: false
  48. ConstructorInitializerAllOnOneLineOrOnePerLine: true
  49. ConstructorInitializerIndentWidth: 4
  50. ContinuationIndentWidth: 4
  51. Cpp11BracedListStyle: true
  52. DerivePointerAlignment: false
  53. DisableFormat: false
  54. ExperimentalAutoDetectBinPacking: false
  55. FixNamespaceComments: true
  56. ForEachMacros:
  57. - foreach
  58. - Q_FOREACH
  59. - BOOST_FOREACH
  60. IncludeCategories:
  61. - Regex: '^"(llvm|llvm-c|clang|clang-c)/'
  62. Priority: 2
  63. - Regex: '^(<|"(gtest|isl|json)/)'
  64. Priority: 3
  65. - Regex: '.*'
  66. Priority: 1
  67. IncludeIsMainRegex: '$'
  68. IndentCaseLabels: false
  69. IndentWidth: 2
  70. IndentWrappedFunctionNames: false
  71. JavaScriptQuotes: Leave
  72. JavaScriptWrapImports: true
  73. KeepEmptyLinesAtTheStartOfBlocks: true
  74. MacroBlockBegin: ''
  75. MacroBlockEnd: ''
  76. MaxEmptyLinesToKeep: 1
  77. NamespaceIndentation: None
  78. ObjCBlockIndentWidth: 2
  79. ObjCSpaceAfterProperty: false
  80. ObjCSpaceBeforeProtocolList: true
  81. PenaltyBreakAssignment: 2
  82. PenaltyBreakBeforeFirstCallParameter: 19
  83. PenaltyBreakComment: 300
  84. PenaltyBreakFirstLessLess: 120
  85. PenaltyBreakString: 1000
  86. PenaltyExcessCharacter: 1000000
  87. PenaltyReturnTypeOnItsOwnLine: 60
  88. PointerAlignment: Left
  89. ReflowComments: true
  90. SortIncludes: false
  91. SortUsingDeclarations: true
  92. SpaceAfterCStyleCast: false
  93. SpaceAfterTemplateKeyword: true
  94. SpaceBeforeAssignmentOperators: true
  95. SpaceBeforeParens: ControlStatements
  96. SpaceInEmptyParentheses: false
  97. SpacesBeforeTrailingComments: 1
  98. SpacesInAngles: false
  99. SpacesInContainerLiterals: true
  100. SpacesInCStyleCastParentheses: false
  101. SpacesInParentheses: false
  102. SpacesInSquareBrackets: false
  103. Standard: Cpp11
  104. TabWidth: 8
  105. UseTab: Never
  106. ...