Advertisement
T4ng10r

.clang-format

Aug 29th, 2019
343
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.53 KB | None | 0 0
  1. # ClangFormatConfigureSource: 'LLVM'
  2.  
  3. Language: Cpp
  4. BasedOnStyle: Google
  5. AccessModifierOffset: -2
  6. AlignAfterOpenBracket: Align
  7. AlignConsecutiveAssignments: false
  8. AlignConsecutiveDeclarations: false
  9. AlignEscapedNewlines: Right
  10. AlignOperands: true
  11. AlignTrailingComments: true
  12. AllowAllParametersOfDeclarationOnNextLine: true
  13. AllowShortBlocksOnASingleLine: false
  14. AllowShortCaseLabelsOnASingleLine: false
  15. AllowShortFunctionsOnASingleLine: All
  16. AllowShortIfStatementsOnASingleLine: false
  17. AllowShortLoopsOnASingleLine: false
  18. AlwaysBreakAfterDefinitionReturnType: None
  19. AlwaysBreakAfterReturnType: None
  20. AlwaysBreakBeforeMultilineStrings: false
  21. AlwaysBreakTemplateDeclarations: MultiLine
  22. BinPackArguments: true
  23. BinPackParameters: true
  24. BraceWrapping:
  25. AfterClass: false
  26. AfterControlStatement: false
  27. AfterEnum: false
  28. AfterFunction: false
  29. AfterNamespace: false
  30. AfterObjCDeclaration: false
  31. AfterStruct: false
  32. AfterUnion: false
  33. AfterExternBlock: false
  34. BeforeCatch: false
  35. BeforeElse: false
  36. IndentBraces: false
  37. SplitEmptyFunction: true
  38. SplitEmptyRecord: true
  39. SplitEmptyNamespace: true
  40. BreakBeforeBinaryOperators: None
  41. BreakBeforeBraces: Attach
  42. BreakBeforeInheritanceComma: false
  43. BreakInheritanceList: BeforeComma
  44. BreakBeforeTernaryOperators: true
  45. BreakConstructorInitializersBeforeComma: false
  46. BreakConstructorInitializers: BeforeColon
  47. BreakAfterJavaFieldAnnotations: false
  48. BreakStringLiterals: true
  49. ColumnLimit: 120
  50. CommentPragmas: '^ IWYU pragma:'
  51. CompactNamespaces: false
  52. ConstructorInitializerAllOnOneLineOrOnePerLine: false
  53. ConstructorInitializerIndentWidth: 4
  54. ContinuationIndentWidth: 4
  55. Cpp11BracedListStyle: true
  56. DerivePointerAlignment: false
  57. DisableFormat: false
  58. ExperimentalAutoDetectBinPacking: false
  59. FixNamespaceComments: true
  60. ForEachMacros:
  61. - foreach
  62. - Q_FOREACH
  63. - BOOST_FOREACH
  64. IncludeBlocks: Preserve
  65. IncludeCategories:
  66. - Regex: '^"(llvm|llvm-c|clang|clang-c)/'
  67. Priority: 2
  68. - Regex: '^(<|"(gtest|gmock|isl|json)/)'
  69. Priority: 3
  70. - Regex: '.*'
  71. Priority: 1
  72. IncludeIsMainRegex: '(Test)?$'
  73. IndentCaseLabels: false
  74. IndentPPDirectives: None
  75. IndentWidth: 2
  76. IndentWrappedFunctionNames: false
  77. JavaScriptQuotes: Leave
  78. JavaScriptWrapImports: true
  79. KeepEmptyLinesAtTheStartOfBlocks: true
  80. MacroBlockBegin: ''
  81. MacroBlockEnd: ''
  82. MaxEmptyLinesToKeep: 1
  83. NamespaceIndentation: None
  84. ObjCBinPackProtocolList: Auto
  85. ObjCBlockIndentWidth: 2
  86. ObjCSpaceAfterProperty: false
  87. ObjCSpaceBeforeProtocolList: true
  88. PenaltyBreakAssignment: 2
  89. PenaltyBreakBeforeFirstCallParameter: 19
  90. PenaltyBreakComment: 300
  91. PenaltyBreakFirstLessLess: 120
  92. PenaltyBreakString: 1000
  93. PenaltyBreakTemplateDeclaration: 10
  94. PenaltyExcessCharacter: 1000000
  95. PenaltyReturnTypeOnItsOwnLine: 60
  96. PointerAlignment: Right
  97. ReflowComments: true
  98. SortIncludes: true
  99. SortUsingDeclarations: true
  100. SpaceAfterCStyleCast: false
  101. SpaceAfterTemplateKeyword: true
  102. SpaceBeforeAssignmentOperators: true
  103. SpaceBeforeCpp11BracedList: false
  104. SpaceBeforeCtorInitializerColon: true
  105. SpaceBeforeInheritanceColon: true
  106. SpaceBeforeParens: ControlStatements
  107. SpaceBeforeRangeBasedForLoopColon: true
  108. SpaceInEmptyParentheses: false
  109. SpacesBeforeTrailingComments: 1
  110. SpacesInAngles: false
  111. SpacesInContainerLiterals: true
  112. SpacesInCStyleCastParentheses: false
  113. SpacesInParentheses: false
  114. SpacesInSquareBrackets: false
  115. Standard: Cpp11
  116. StatementMacros:
  117. - Q_UNUSED
  118. - QT_REQUIRE_VERSION
  119. TabWidth: 2
  120. UseTab: Never
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement