Advertisement
skb50bd

ClangFormatStyle

Jan 4th, 2017
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 6.23 KB | None | 0 0
  1. # Shakib Haris
  2. # Clang Format Custom
  3.  
  4.  
  5. ---
  6. # We'll use defaults from the Google style
  7. BasedOnStyle                                            : Google
  8. IndentWidth                                             : 4
  9. ---
  10. Language                                                : Cpp
  11. # Force pointers to the type for C++.
  12. DerivePointerAlignment                                  : false
  13. PointerAlignment                                        : Left
  14. ---
  15. Language                                                : JavaScript
  16. # Use 100 columns for JS.
  17. ColumnLimit                                             : 100
  18. ---
  19. Language                                                : Proto
  20. # Don't format .proto files.
  21. DisableFormat                                           : true
  22. ...
  23.  
  24.  
  25. AccessModifierOffset                                    : 0
  26.  
  27. AlignAfterOpenBracket                                   : Align
  28. AlignConsecutiveAssignments                             : true
  29. AlignEscapedNewlinesLeft                                : false
  30. AlignOperands                                           : false
  31. AlignTrailingComments                                   : true
  32.  
  33. AllowAllParametersOfDeclarationOnNextLine               : true
  34. AllowShortBlocksOnASingleLine                           : false
  35. AllowShortCaseLabelsOnASingleLine                       : false
  36. AllowShortFunctionsOnASingleLine                        : Inline
  37. AllowShortIfStatementsOnASingleLine                     : true
  38. AllowShortLoopsOnASingleLine                            : true
  39.  
  40.  
  41. AlwaysBreakAfterDefinitionReturnType                    : None
  42. AlwaysBreakAfterReturnType                              : None
  43. AlwaysBreakBeforeMultilineStrings                       : false
  44. AlwaysBreakTemplateDeclarations                         : false
  45.  
  46. BinPackArguments                                        : false
  47. BinPackParameters                                       : false
  48.  
  49. # BraceWrapping .AfterClass                               : true
  50. # BraceWrapping .AfterControlStatement                    : true
  51. # BraceWrapping .AfterEnum                                : true
  52. # BraceWrapping .AfterFunction                            : true
  53. # BraceWrapping .AfterNamespace                           : true
  54. # BraceWrapping .AfterObjDeclaration                      : true
  55. # BraceWrapping .AfterStruct                              : true
  56. # BraceWrapping .AfterUnion                               : true
  57. # BraceWrapping .BeforeCatch                              : true
  58. # BraceWrapping .BeforeElse                               : true
  59. # BraceWrapping .IndentBraces                             : true
  60.  
  61. BreakAfterJavaFieldAnnotation                           : true
  62. BreakBeforeBinaryOperators                              : None
  63. BreakBeforeBraces                                       : Attach # Allman
  64. BreakBeforeTernaryOperators                             : false
  65. BreakConstructorInitializersBeforeComma                 : false
  66. BreakStringLiterals                                     : false
  67.  
  68. ColumnLimit                                             : 100
  69. CommentPragmas                                          : ''
  70. ConstructorInitializerAllOnOneLineOrOnePerLine          : true
  71. ConstructorInitializerIndentWidth                       : 4
  72. ContinuationIndentWidth                                 : 4
  73. Cpp11BracedListStyle                                    : false
  74.  
  75. # DerivePointerBinding                                    : false
  76. DisableFormat                                           : false
  77.  
  78. ExperimentalAutoDetectBinPacking                        : false
  79.  
  80. # ForEachMacros                                           : ['RANGES_FOR', 'FOREACH', 'BOOST_FOREACH']
  81. # IncludeCategories                                       :
  82. # IncludeIsMainRegex                                      :
  83.  
  84. IndentCaseLabels                                        : false
  85. IndentFunctionDeclarationAfterType                      : false
  86. IndentWidth                                             : 4
  87. IndentWrappedFunctionNames                              : true
  88.  
  89. JavaScriptQuotes                                        : Double # Use Double Quotes for JS Strings
  90.  
  91. KeepEmptyLinesAtTheStartOfBlocks                        : false
  92.  
  93. # Language                                                : Cpp
  94.  
  95. MacroBlockBegin                                         :
  96. MacroBlockEnd                                           :
  97. MaxEmptyLinesToKeep                                     : 4
  98. NamespaceIndentation                                    : All
  99.  
  100. ObjCBlockIndentWidth                                    : 4
  101. ObjCSpaceAfterProperty                                  : true
  102. ObjCSpaceBeforeProtocolList                             : true
  103.  
  104. PenaltyBreakBeforeFirstCallParameter                    : 100
  105. PenaltyBreakComment                                     : 100
  106. PenaltyBreakFirstLessLess                               : 0
  107. PenaltyBreakString                                      : 100
  108. PenaltyExcessCharacter                                  : 1
  109. PenaltyReturnTypeOnItsOwnLine                           : 2000
  110.  
  111. PointerAlignment                                        : Left
  112. PointerBindsToType                                      : 100
  113.  
  114. ReflowComments                                          : true
  115. SortIncludes                                            : true
  116.  
  117. SpaceAfterCStyleCast                                    : false
  118. SpaceAfterTemplateKeyword                               : true
  119. SpaceBeforeAssignmentOperators                          : true
  120. SpaceBeforeParens                                       : Always
  121. SpaceInEmptyParentheses                                 : true
  122. SpacesBeforeTrailingComments                            : 1
  123. SpacesInAngles                                          : false
  124. SpacesInCStyleCastParentheses                           : false
  125. SpacesInContainerLiterals                               : false
  126. SpacesInParentheses                                     : false
  127. SpacesInSquareBrackets                                  : false
  128. Standard                                                : Auto
  129. TabWidth                                                : 4
  130. UseTab                                                  : Never
  131.  
  132.  
  133. # END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement