.clang-format 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. ---
  2. Language: Cpp
  3. AccessModifierOffset: -2
  4. AlignAfterOpenBracket: true
  5. AlignConsecutiveAssignments: false
  6. AlignConsecutiveDeclarations: false
  7. AlignEscapedNewlinesLeft: false
  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. BreakBeforeBinaryOperators: None
  35. BreakBeforeBraces: Stroustrup
  36. BreakBeforeTernaryOperators: true
  37. BreakConstructorInitializersBeforeComma: false
  38. BreakAfterJavaFieldAnnotations: false
  39. BreakStringLiterals: true
  40. ColumnLimit: 80
  41. CommentPragmas: '^ IWYU pragma:'
  42. ConstructorInitializerAllOnOneLineOrOnePerLine: true
  43. ConstructorInitializerIndentWidth: 4
  44. ContinuationIndentWidth: 4
  45. Cpp11BracedListStyle: true
  46. DerivePointerAlignment: false
  47. DisableFormat: false
  48. ExperimentalAutoDetectBinPacking: false
  49. ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
  50. IncludeCategories:
  51. - Regex: '^"(llvm|llvm-c|clang|clang-c)/'
  52. Priority: 2
  53. - Regex: '^(<|"(gtest|isl|json)/)'
  54. Priority: 3
  55. - Regex: '.*'
  56. Priority: 1
  57. IncludeIsMainRegex: '$'
  58. IndentCaseLabels: false
  59. IndentWidth: 2
  60. IndentWrappedFunctionNames: false
  61. JavaScriptQuotes: Leave
  62. JavaScriptWrapImports: true
  63. KeepEmptyLinesAtTheStartOfBlocks: true
  64. MacroBlockBegin: ''
  65. MacroBlockEnd: ''
  66. MaxEmptyLinesToKeep: 1
  67. NamespaceIndentation: None
  68. ObjCBlockIndentWidth: 2
  69. ObjCSpaceAfterProperty: false
  70. ObjCSpaceBeforeProtocolList: true
  71. PenaltyBreakBeforeFirstCallParameter: 19
  72. PenaltyBreakComment: 300
  73. PenaltyBreakFirstLessLess: 120
  74. PenaltyBreakString: 1000
  75. PenaltyExcessCharacter: 1000000
  76. PenaltyReturnTypeOnItsOwnLine: 60
  77. PointerAlignment: Left
  78. ReflowComments: true
  79. SortIncludes: false
  80. SpaceAfterCStyleCast: false
  81. SpaceBeforeAssignmentOperators: true
  82. SpaceBeforeParens: ControlStatements
  83. SpaceInEmptyParentheses: false
  84. SpacesBeforeTrailingComments: 1
  85. SpacesInAngles: false
  86. SpacesInContainerLiterals: true
  87. SpacesInCStyleCastParentheses: false
  88. SpacesInParentheses: false
  89. SpacesInSquareBrackets: false
  90. Standard: Cpp11
  91. TabWidth: 8
  92. UseTab: Never
  93. ...