1
0

.clang-format 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. ---
  2. AccessModifierOffset: 0
  3. AlignAfterOpenBracket: true
  4. AlignConsecutiveAssignments: false
  5. #uncomment for clang 3.9
  6. #AlignConsecutiveDeclarations: false
  7. AlignEscapedNewlinesLeft: false
  8. AlignOperands: true
  9. AlignTrailingComments: true
  10. AllowAllParametersOfDeclarationOnNextLine: true
  11. AllowShortBlocksOnASingleLine: false
  12. AllowShortCaseLabelsOnASingleLine: false
  13. AllowShortFunctionsOnASingleLine: None
  14. AllowShortIfStatementsOnASingleLine: false
  15. AllowShortLoopsOnASingleLine: false
  16. # AlwaysBreakAfterDefinitionReturnType: None
  17. #uncomment for clang 3.9
  18. #AlwaysBreakAfterReturnType: None
  19. AlwaysBreakBeforeMultilineStrings: true
  20. AlwaysBreakTemplateDeclarations: false
  21. BinPackArguments: false
  22. BinPackParameters: true
  23. # BraceWrapping: (not set since BreakBeforeBraces is not Custom)
  24. BreakBeforeBinaryOperators: None
  25. # BreakAfterJavaFieldAnnotations: (not java)
  26. BreakBeforeBinaryOperators: None
  27. BreakBeforeBraces: Linux
  28. BreakBeforeTernaryOperators: true
  29. BreakConstructorInitializersBeforeComma: false
  30. #uncomment for clang 3.9
  31. #BreakStringLiterals: false
  32. ColumnLimit: 100
  33. CommentPragmas: '\*\<'
  34. ConstructorInitializerAllOnOneLineOrOnePerLine: false
  35. ConstructorInitializerIndentWidth: 4
  36. ContinuationIndentWidth: 4
  37. Cpp11BracedListStyle: false
  38. DerivePointerAlignment: false
  39. DisableFormat: false
  40. ExperimentalAutoDetectBinPacking: false
  41. ForEachMacros: [ ]
  42. #Uncomment for clang 3.9
  43. #IncludeCategories:
  44. # - Regex: '^"'
  45. # Priority: 1
  46. # IncludeIsMainRegex: (project doesn't use a main includes that can add other includes via regex)
  47. IndentCaseLabels: false
  48. IndentWidth: 4
  49. IndentWrappedFunctionNames: false
  50. # JavaScriptQuotes: (not javascript)
  51. KeepEmptyLinesAtTheStartOfBlocks: false
  52. Language: Cpp
  53. MacroBlockBegin: ''
  54. MacroBlockEnd: ''
  55. MaxEmptyLinesToKeep: 1
  56. NamespaceIndentation: None
  57. # ObjCBlockIndentWidth: (not objc)
  58. # ObjCSpaceAfterProperty: (not objc)
  59. # ObjCSpaceBeforeProtocolList: (not objc)
  60. PenaltyBreakBeforeFirstCallParameter: 400
  61. PenaltyBreakComment: 0
  62. # PenaltyBreakFirstLessLess: (not cpp)
  63. PenaltyBreakString: 500
  64. PenaltyExcessCharacter: 10000
  65. PenaltyReturnTypeOnItsOwnLine: 600
  66. PointerAlignment: Right
  67. #uncomment for clang 3.9
  68. #ReflowComments: true
  69. #uncomment for clang 3.9
  70. #SortIncludes: true
  71. SpaceAfterCStyleCast: false
  72. SpaceBeforeAssignmentOperators: true
  73. SpaceBeforeParens: ControlStatements
  74. SpaceInEmptyParentheses: false
  75. SpacesBeforeTrailingComments: 1
  76. SpacesInAngles: false
  77. SpacesInCStyleCastParentheses: false
  78. # SpacesInContainerLiterals: (not objc or javascript)
  79. SpacesInParentheses: false
  80. SpacesInSquareBrackets: false
  81. Standard: Cpp11
  82. TabWidth: 4
  83. UseTab: ForIndentation
  84. ...