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