yet another no-frills web browser
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.clang-format 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. ---
  2. Language: Cpp
  3. # BasedOnStyle: WebKit
  4. AccessModifierOffset: -4
  5. AlignAfterOpenBracket: DontAlign
  6. AlignConsecutiveAssignments: false
  7. AlignConsecutiveDeclarations: false
  8. AlignEscapedNewlines: Right
  9. AlignOperands: false
  10. AlignTrailingComments: false
  11. AllowAllParametersOfDeclarationOnNextLine: true
  12. AllowShortBlocksOnASingleLine: false
  13. AllowShortCaseLabelsOnASingleLine: false
  14. AllowShortFunctionsOnASingleLine: All
  15. AllowShortIfStatementsOnASingleLine: false
  16. AllowShortLoopsOnASingleLine: false
  17. AlwaysBreakAfterDefinitionReturnType: None
  18. AlwaysBreakAfterReturnType: None
  19. AlwaysBreakBeforeMultilineStrings: false
  20. AlwaysBreakTemplateDeclarations: false
  21. BinPackArguments: true
  22. BinPackParameters: true
  23. BraceWrapping:
  24. AfterClass: false
  25. AfterControlStatement: false
  26. AfterEnum: false
  27. AfterFunction: true
  28. AfterNamespace: false
  29. AfterObjCDeclaration: false
  30. AfterStruct: false
  31. AfterUnion: false
  32. BeforeCatch: false
  33. BeforeElse: false
  34. IndentBraces: false
  35. SplitEmptyFunction: true
  36. SplitEmptyRecord: true
  37. SplitEmptyNamespace: true
  38. BreakBeforeBinaryOperators: All
  39. BreakBeforeBraces: Linux
  40. BreakBeforeInheritanceComma: false
  41. BreakBeforeTernaryOperators: true
  42. BreakConstructorInitializersBeforeComma: true
  43. BreakConstructorInitializers: BeforeComma
  44. BreakAfterJavaFieldAnnotations: false
  45. BreakStringLiterals: true
  46. ColumnLimit: 0
  47. CommentPragmas: '^ IWYU pragma:'
  48. CompactNamespaces: false
  49. ConstructorInitializerAllOnOneLineOrOnePerLine: false
  50. ConstructorInitializerIndentWidth: 4
  51. ContinuationIndentWidth: 4
  52. Cpp11BracedListStyle: false
  53. DerivePointerAlignment: false
  54. DisableFormat: false
  55. ExperimentalAutoDetectBinPacking: false
  56. FixNamespaceComments: false
  57. ForEachMacros:
  58. - foreach
  59. - Q_FOREACH
  60. - BOOST_FOREACH
  61. IncludeCategories:
  62. - Regex: '^"(llvm|llvm-c|clang|clang-c)/'
  63. Priority: 2
  64. - Regex: '^(<|"(gtest|gmock|isl|json)/)'
  65. Priority: 3
  66. - Regex: '.*'
  67. Priority: 1
  68. IncludeIsMainRegex: '(Test)?$'
  69. IndentCaseLabels: false
  70. IndentWidth: 4
  71. IndentWrappedFunctionNames: false
  72. JavaScriptQuotes: Leave
  73. JavaScriptWrapImports: true
  74. KeepEmptyLinesAtTheStartOfBlocks: true
  75. MacroBlockBegin: ''
  76. MacroBlockEnd: ''
  77. MaxEmptyLinesToKeep: 1
  78. NamespaceIndentation: Inner
  79. ObjCBlockIndentWidth: 4
  80. ObjCSpaceAfterProperty: true
  81. ObjCSpaceBeforeProtocolList: true
  82. PenaltyBreakAssignment: 2
  83. PenaltyBreakBeforeFirstCallParameter: 19
  84. PenaltyBreakComment: 300
  85. PenaltyBreakFirstLessLess: 120
  86. PenaltyBreakString: 1000
  87. PenaltyExcessCharacter: 1000000
  88. PenaltyReturnTypeOnItsOwnLine: 60
  89. PointerAlignment: Right
  90. ReflowComments: true
  91. SortIncludes: true
  92. SortUsingDeclarations: true
  93. SpaceAfterCStyleCast: false
  94. SpaceAfterTemplateKeyword: true
  95. SpaceBeforeAssignmentOperators: true
  96. SpaceBeforeParens: Never
  97. SpaceInEmptyParentheses: false
  98. SpacesBeforeTrailingComments: 1
  99. SpacesInAngles: false
  100. SpacesInContainerLiterals: false
  101. SpacesInCStyleCastParentheses: false
  102. SpacesInParentheses: false
  103. SpacesInSquareBrackets: false
  104. Standard: Cpp11
  105. TabWidth: 4
  106. UseTab: Never
  107. ...