.clang-format 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. AccessModifierOffset: -4
  2. AllowAllArgumentsOnNextLine: false
  3. AllowAllParametersOfDeclarationOnNextLine: false
  4. AlignAfterOpenBracket: DontAlign
  5. AlignConsecutiveAssignments: false
  6. AlignConsecutiveDeclarations: false
  7. AlignEscapedNewlines: Left
  8. AlignOperands: false
  9. AlignTrailingComments: true
  10. AllowShortBlocksOnASingleLine: Empty
  11. AllowShortCaseLabelsOnASingleLine: true
  12. AllowShortFunctionsOnASingleLine: Inline
  13. AlwaysBreakTemplateDeclarations: Yes
  14. BinPackArguments: true
  15. BinPackParameters: true
  16. BreakBeforeBraces: Custom
  17. BraceWrapping:
  18. AfterCaseLabel: true
  19. AfterControlStatement: true
  20. AfterFunction: true
  21. BeforeElse: true
  22. SplitEmptyFunction: false
  23. SplitEmptyRecord: false
  24. SplitEmptyNamespace: false
  25. BreakConstructorInitializers: AfterColon
  26. ColumnLimit: 150
  27. CompactNamespaces: false
  28. Cpp11BracedListStyle: true
  29. FixNamespaceComments: true
  30. IncludeBlocks: Merge
  31. IncludeCategories:
  32. - Regex: '^<RmlUi/'
  33. Priority: 1
  34. IndentCaseLabels: false
  35. IndentPPDirectives: BeforeHash
  36. IndentWidth: 4
  37. IndentWrappedFunctionNames: false
  38. KeepEmptyLinesAtTheStartOfBlocks: false
  39. Language: Cpp
  40. MaxEmptyLinesToKeep: 1
  41. NamespaceIndentation: Inner
  42. PointerAlignment: Left
  43. QualifierAlignment: Left
  44. ReflowComments: true
  45. SpaceAfterCStyleCast: false
  46. SpaceAfterLogicalNot: false
  47. SpaceAfterTemplateKeyword: true
  48. SpaceBeforeAssignmentOperators: true
  49. SpaceBeforeCpp11BracedList: false
  50. SpaceBeforeCtorInitializerColon: true
  51. SpaceBeforeInheritanceColon: true
  52. SpaceBeforeParens: ControlStatements
  53. SpaceBeforeRangeBasedForLoopColon: true
  54. SpaceInEmptyParentheses: false
  55. SpacesBeforeTrailingComments: 1
  56. SpacesInAngles: false
  57. SpacesInCStyleCastParentheses: false
  58. SpacesInContainerLiterals: false
  59. SpacesInParentheses: false
  60. SpacesInSquareBrackets: false
  61. Standard: Cpp11
  62. StatementMacros:
  63. - RMLUI_RTTI_Define
  64. - RMLUI_RTTI_DefineWithParent
  65. TabWidth: 4
  66. UseTab: AlignWithSpaces
  67. WhitespaceSensitiveMacros: ['RMLUI_STRINGIFY']