.clang-format 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. RawStringFormats:
  2. - Language: Cpp
  3. Delimiters:
  4. - c
  5. - C
  6. - cc
  7. - CC
  8. - cpp
  9. - Cpp
  10. - CPP
  11. - 'c++'
  12. - 'C++'
  13. - h
  14. - hpp
  15. CanonicalDelimiter: ''
  16. BasedOnStyle: google
  17. - Language: TextProto
  18. Delimiters:
  19. - pb
  20. - PB
  21. - proto
  22. - PROTO
  23. EnclosingFunctions:
  24. - EqualsProto
  25. - EquivToProto
  26. - PARSE_PARTIAL_TEXT_PROTO
  27. - PARSE_TEST_PROTO
  28. - PARSE_TEXT_PROTO
  29. - ParseTextOrDie
  30. - ParseTextProtoOrDie
  31. CanonicalDelimiter: ''
  32. BasedOnStyle: google
  33. Language: Cpp
  34. BasedOnStyle: Mozilla
  35. IndentWidth: 4
  36. AlignAfterOpenBracket: Align
  37. AllowAllArgumentsOnNextLine: false
  38. AlignConsecutiveMacros: true
  39. AllowShortBlocksOnASingleLine: true
  40. AlwaysBreakAfterReturnType: All
  41. BinPackArguments: true
  42. BinPackParameters: false
  43. BreakBeforeBinaryOperators: NonAssignment
  44. BreakBeforeBraces: Custom
  45. BraceWrapping:
  46. AfterCaseLabel: true
  47. AfterClass: true
  48. AfterControlStatement: false
  49. AfterEnum: false
  50. AfterFunction: true
  51. AfterNamespace: false
  52. AfterObjCDeclaration: false
  53. AfterStruct: false
  54. AfterUnion: false
  55. AfterExternBlock: false
  56. BeforeCatch: false
  57. BeforeElse: true
  58. IndentBraces: false
  59. SplitEmptyFunction: true
  60. SplitEmptyRecord: false
  61. SplitEmptyNamespace: true
  62. ColumnLimit: 79
  63. ContinuationIndentWidth: 2
  64. DerivePointerAlignment: false
  65. IncludeBlocks: Regroup
  66. IncludeCategories:
  67. - Regex: '^"(llvm|llvm-c|clang|clang-c)/'
  68. Priority: 2
  69. - Regex: '^(<|"(gtest|gmock|isl|json)/)'
  70. Priority: 1
  71. - Regex: ".*"
  72. Priority: 3
  73. IndentPPDirectives: None
  74. KeepEmptyLinesAtTheStartOfBlocks: false
  75. NamespaceIndentation: None
  76. PointerAlignment: Right
  77. ReflowComments: false
  78. SortIncludes: false
  79. Standard: Auto
  80. StatementMacros:
  81. - Q_UNUSED
  82. - QT_REQUIRE_VERSION
  83. # AccessModifierOffset: -2
  84. # AlignConsecutiveAssignments: false
  85. # AlignConsecutiveDeclarations: false
  86. # AlignEscapedNewlines: Right
  87. # AlignOperands: true
  88. # AlignTrailingComments: true
  89. # AllowAllConstructorInitializersOnNextLine: true
  90. # AllowAllParametersOfDeclarationOnNextLine: false
  91. # AllowShortCaseLabelsOnASingleLine: false
  92. # AllowShortFunctionsOnASingleLine: Inline
  93. # AllowShortLambdasOnASingleLine: All
  94. # AllowShortIfStatementsOnASingleLine: Never
  95. # AllowShortLoopsOnASingleLine: false
  96. # AlwaysBreakAfterDefinitionReturnType: TopLevel
  97. # AlwaysBreakAfterReturnType: TopLevel
  98. # AlwaysBreakBeforeMultilineStrings: false
  99. # AlwaysBreakTemplateDeclarations: Yes
  100. # BreakBeforeInheritanceComma: false
  101. # BreakInheritanceList: BeforeComma
  102. # BreakBeforeTernaryOperators: true
  103. # BreakConstructorInitializersBeforeComma: false
  104. # BreakConstructorInitializers: BeforeComma
  105. # BreakAfterJavaFieldAnnotations: false
  106. # BreakStringLiterals: true
  107. # CommentPragmas: '^ IWYU pragma:'
  108. # CompactNamespaces: false
  109. # ConstructorInitializerAllOnOneLineOrOnePerLine: false
  110. # ConstructorInitializerIndentWidth: 2
  111. # Cpp11BracedListStyle: false
  112. # DisableFormat: false
  113. # ExperimentalAutoDetectBinPacking: false
  114. # FixNamespaceComments: false
  115. # ForEachMacros:
  116. # - foreach
  117. # - Q_FOREACH
  118. # - BOOST_FOREACH
  119. # IncludeIsMainRegex: '(Test)?$'
  120. # IndentCaseLabels: true
  121. # IndentWrappedFunctionNames: false
  122. # JavaScriptQuotes: Leave
  123. # JavaScriptWrapImports: true
  124. # KeepEmptyLinesAtTheStartOfBlocks: true
  125. # MacroBlockBegin: ''
  126. # MacroBlockEnd: ''
  127. # MaxEmptyLinesToKeep: 1
  128. # ObjCBinPackProtocolList: Auto
  129. # ObjCBlockIndentWidth: 2
  130. # ObjCSpaceAfterProperty: true
  131. # ObjCSpaceBeforeProtocolList: false
  132. # PenaltyBreakAssignment: 2
  133. # PenaltyBreakBeforeFirstCallParameter: 19
  134. # PenaltyBreakComment: 300
  135. # PenaltyBreakFirstLessLess: 120
  136. # PenaltyBreakString: 1000
  137. # PenaltyBreakTemplateDeclaration: 10
  138. # PenaltyExcessCharacter: 1000000
  139. # PenaltyReturnTypeOnItsOwnLine: 200
  140. # SortIncludes: true
  141. # SortUsingDeclarations: true
  142. # SpaceAfterCStyleCast: false
  143. # SpaceAfterLogicalNot: false
  144. # SpaceAfterTemplateKeyword: false
  145. # SpaceBeforeAssignmentOperators: true
  146. # SpaceBeforeCpp11BracedList: false
  147. # SpaceBeforeCtorInitializerColon: true
  148. # SpaceBeforeInheritanceColon: true
  149. # SpaceBeforeParens: ControlStatements
  150. # SpaceBeforeRangeBasedForLoopColon: true
  151. # SpaceInEmptyParentheses: false
  152. # SpacesBeforeTrailingComments: 1
  153. # SpacesInAngles: false
  154. # SpacesInContainerLiterals: true
  155. # SpacesInCStyleCastParentheses: false
  156. # SpacesInParentheses: false
  157. # SpacesInSquareBrackets: false
  158. # TabWidth: 4
  159. # UseTab: Never
  160. # ...