Advertisement
BumbleBritches57

My .clang-format style

Jul 13th, 2020 (edited)
1,983
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 3.26 KB | None | 0 0
  1. ## Language
  2. Language: Cpp
  3. Standard: Latest
  4.  
  5. ## Line Rules
  6.  
  7. ## C++ Rules
  8. AccessModifierOffset: -2
  9. AlignAfterOpenBracket: Align
  10. AlignConsecutiveAssignments: true
  11. #Clang11: AlignConsecutiveBitFields: true
  12. AlignConsecutiveDeclarations: true
  13. AlignConsecutiveMacros: true
  14. AlignEscapedNewlines: Left
  15. AlignOperands: true
  16. #Clang11: AlignAfterOperator
  17. AlignTrailingComments: true
  18. AllowAllArgumentsOnNextLine: true
  19. AllowAllConstructorInitializersOnNextLine: false
  20. AllowAllParametersOfDeclarationOnNextLine: false
  21. AllowShortBlocksOnASingleLine: Never
  22. AllowShortCaseLabelsOnASingleLine: false
  23. #Clang11: AllowShortEnumsOnASingleLine: false
  24. AllowShortFunctionsOnASingleLine: None
  25. AllowShortIfStatementsOnASingleLine: Never
  26. AllowShortLambdasOnASingleLine: None
  27. AllowShortLoopsOnASingleLine: false
  28. AlwaysBreakAfterReturnType: None
  29. AlwaysBreakBeforeMultilineStrings: false
  30. AlwaysBreakTemplateDeclarations: Yes
  31. BinPackArguments: true
  32. BinPackParameters: false
  33. BreakBeforeBraces: Custom
  34. BraceWrapping:
  35.   AfterCaseLabel:       false
  36.   AfterClass:           false
  37.   AfterControlStatement: Never
  38.   AfterEnum:            false
  39.   AfterExternBlock:     false
  40.   AfterFunction:        false
  41.   AfterNamespace:       false
  42.   AfterStruct:          false
  43.   AfterUnion:           false
  44.   BeforeCatch:          false
  45.   BeforeElse:           false
  46. #Clang11: BeforeWhile:           false
  47. #Clang11: BeforeLambdaBody:      false
  48.   IndentBraces:         true
  49.   SplitEmptyFunction:   true
  50.   SplitEmptyNamespace:  true
  51.   SplitEmptyRecord:     true
  52. BreakBeforeBinaryOperators: None
  53. BreakBeforeTernaryOperators: false
  54. BreakConstructorInitializers: AfterColon
  55. BreakInheritanceList: AfterColon
  56. BreakStringLiterals: true
  57. ColumnLimit: 160
  58. CompactNamespaces: true
  59. Cpp11BracedListStyle: true
  60. DeriveLineEnding: false
  61. DerivePointerAlignment: false
  62. FixNamespaceComments: true
  63. IncludeBlocks: Merge
  64. #Clang11?: IndentCaseBlocks: true
  65. IndentCaseLabels: true
  66. #Clang11: IndentExternBlock: true
  67. IndentPPDirectives: None
  68. IndentWidth: 4
  69. IndentWrappedFunctionNames: true
  70. KeepEmptyLinesAtTheStartOfBlocks: false
  71. MaxEmptyLinesToKeep: 1
  72. NamespaceIndentation: All
  73. PenaltyBreakAssignment: 16
  74. PenaltyBreakBeforeFirstCallParameter: 2
  75. PenaltyBreakString: 64
  76. PenaltyExcessCharacter: 0
  77. PenaltyReturnTypeOnItsOwnLine: 0
  78. PointerAlignment: Right
  79. ReflowComments: true
  80. SortIncludes: true
  81. IncludeCategories:
  82. - Regex: '"*PlatformIO.h"'
  83.   Priority: -5
  84. - Regex: '"*TextIOTypes.h"'
  85.   Priority: -4
  86. - Regex: '<[Ww]indows.h>'
  87.   Priority: -3
  88. - Regex: '<*\/.h>'
  89.   Priority: -2
  90. - Regex: '"*\/.h"'
  91.   Priority: 1
  92.  
  93. SortUsingDeclarations: true
  94. SpaceAfterCStyleCast: true
  95. SpaceAfterLogicalNot: false
  96. SpaceAfterTemplateKeyword: true
  97. SpaceBeforeAssignmentOperators: true
  98. SpaceBeforeCpp11BracedList: true
  99. SpaceBeforeCtorInitializerColon: false
  100. SpaceBeforeInheritanceColon: false
  101. SpaceBeforeParens: ControlStatements
  102. SpaceBeforeRangeBasedForLoopColon: false
  103. SpaceBeforeSquareBrackets: false
  104. SpaceInEmptyBlock: false
  105. SpaceInEmptyParentheses: false
  106. SpacesBeforeTrailingComments: 1
  107. SpacesInAngles: false
  108. SpacesInConditionalStatement: false
  109. SpacesInContainerLiterals: false
  110. SpacesInCStyleCastParentheses: false
  111. SpacesInParentheses: false
  112. SpacesInSquareBrackets: false
  113. TabWidth: 4
  114. UseCRLF: false
  115. UseTab: Never
  116.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement