Advertisement
LorenzoPagliara

.clang-format

Oct 5th, 2023 (edited)
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.03 KB | None | 0 0
  1. # Source: https://github.com/ros-planning/moveit/blob/master/.clang-format
  2.  
  3. ---
  4. BasedOnStyle: Google
  5. ColumnLimit: 120
  6. MaxEmptyLinesToKeep: 1
  7. SortIncludes: false
  8.  
  9. Standard: Auto
  10. IndentWidth: 2
  11. TabWidth: 2
  12. UseTab: Never
  13. AccessModifierOffset: -2
  14. ConstructorInitializerIndentWidth: 2
  15. NamespaceIndentation: None
  16. ContinuationIndentWidth: 4
  17. IndentCaseLabels: true
  18. IndentFunctionDeclarationAfterType: false
  19.  
  20. AlignEscapedNewlinesLeft: false
  21. AlignTrailingComments: true
  22.  
  23. AllowAllParametersOfDeclarationOnNextLine: false
  24. ExperimentalAutoDetectBinPacking: false
  25. ObjCSpaceBeforeProtocolList: true
  26. Cpp11BracedListStyle: false
  27.  
  28. AllowShortBlocksOnASingleLine: true
  29. AllowShortIfStatementsOnASingleLine: false
  30. AllowShortLoopsOnASingleLine: false
  31. AllowShortFunctionsOnASingleLine: None
  32. AllowShortCaseLabelsOnASingleLine: false
  33.  
  34. AlwaysBreakTemplateDeclarations: true
  35. AlwaysBreakBeforeMultilineStrings: false
  36. BreakBeforeBinaryOperators: false
  37. BreakBeforeTernaryOperators: false
  38. BreakConstructorInitializersBeforeComma: true
  39.  
  40. BinPackParameters: true
  41. ConstructorInitializerAllOnOneLineOrOnePerLine: true
  42. DerivePointerBinding: false
  43. PointerBindsToType: true
  44.  
  45. PenaltyExcessCharacter: 50
  46. PenaltyBreakBeforeFirstCallParameter: 30
  47. PenaltyBreakComment: 1000
  48. PenaltyBreakFirstLessLess: 10
  49. PenaltyBreakString: 100
  50. PenaltyReturnTypeOnItsOwnLine: 50
  51.  
  52. SpacesBeforeTrailingComments: 2
  53. SpacesInParentheses: false
  54. SpacesInAngles: false
  55. SpaceInEmptyParentheses: false
  56. SpacesInCStyleCastParentheses: false
  57. SpaceAfterCStyleCast: false
  58. SpaceAfterControlStatementKeyword: true
  59. SpaceBeforeAssignmentOperators: true
  60.  
  61. # Configure each individual brace in BraceWrapping
  62. BreakBeforeBraces: Custom
  63.  
  64. # Control of individual brace wrapping cases
  65. BraceWrapping:
  66. AfterCaseLabel: true
  67. AfterClass: true
  68. AfterControlStatement: true
  69. AfterEnum: true
  70. AfterFunction: true
  71. AfterNamespace: true
  72. AfterStruct: true
  73. AfterUnion: true
  74. BeforeCatch: true
  75. BeforeElse: true
  76. IndentBraces: false
  77. ...
  78.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement