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