1fb726d48Sopenharmony_ciLanguage: Cpp
2fb726d48Sopenharmony_ciBasedOnStyle:  LLVM
3fb726d48Sopenharmony_ci# 访问说明符(public、private等)的偏移
4fb726d48Sopenharmony_ciAccessModifierOffset: -4
5fb726d48Sopenharmony_ci# 开括号(开圆括号、开尖括号、开方括号)后的对齐
6fb726d48Sopenharmony_ciAlignAfterOpenBracket: Align
7fb726d48Sopenharmony_ci# 连续赋值时,等号对齐
8fb726d48Sopenharmony_ciAlignConsecutiveAssignments: false
9fb726d48Sopenharmony_ci# 连续赋值时,变量名对齐
10fb726d48Sopenharmony_ciAlignConsecutiveDeclarations: false
11fb726d48Sopenharmony_ci# 左对齐逃脱换行(使用反斜杠换行)的反斜杠
12fb726d48Sopenharmony_ciAlignEscapedNewlinesLeft: true
13fb726d48Sopenharmony_ci# 水平对齐二元和三元表达式的操作数
14fb726d48Sopenharmony_ciAlignOperands: true
15fb726d48Sopenharmony_ci# 对齐连续的尾随的注释
16fb726d48Sopenharmony_ciAlignTrailingComments: true
17fb726d48Sopenharmony_ci# 允许函数声明的所有参数在放在下一行
18fb726d48Sopenharmony_ciAllowAllParametersOfDeclarationOnNextLine: false
19fb726d48Sopenharmony_ci# 允许短的块放在同一行
20fb726d48Sopenharmony_ciAllowShortBlocksOnASingleLine: false
21fb726d48Sopenharmony_ci# 允许短的case标签放在同一行
22fb726d48Sopenharmony_ciAllowShortCaseLabelsOnASingleLine: false
23fb726d48Sopenharmony_ci# 允许短的函数放在同一行: None, InlineOnly(定义在类中), Empty(空函数), Inline(定义在类中,空函数), All
24fb726d48Sopenharmony_ciAllowShortFunctionsOnASingleLine: Empty
25fb726d48Sopenharmony_ci# 允许短的if语句保持在同一行
26fb726d48Sopenharmony_ciAllowShortIfStatementsOnASingleLine: false
27fb726d48Sopenharmony_ci# 允许短的循环保持在同一行
28fb726d48Sopenharmony_ciAllowShortLoopsOnASingleLine: false
29fb726d48Sopenharmony_ci# 总是在定义返回类型后换行(deprecated)
30fb726d48Sopenharmony_ciAlwaysBreakAfterDefinitionReturnType: None
31fb726d48Sopenharmony_ci# 总是在返回类型后换行: None, All, TopLevel(顶级函数,不包括在类中的函数),
32fb726d48Sopenharmony_ci#   AllDefinitions(所有的定义,不包括声明), TopLevelDefinitions(所有的顶级函数的定义)
33fb726d48Sopenharmony_ciAlwaysBreakAfterReturnType: None
34fb726d48Sopenharmony_ci# 总是在多行string字面量前换行
35fb726d48Sopenharmony_ciAlwaysBreakBeforeMultilineStrings: true
36fb726d48Sopenharmony_ci# 总是在template声明后换行
37fb726d48Sopenharmony_ciAlwaysBreakTemplateDeclarations: true
38fb726d48Sopenharmony_ci# false表示函数实参要么都在同一行,要么都各自一行
39fb726d48Sopenharmony_ciBinPackArguments: true
40fb726d48Sopenharmony_ci# false表示所有形参要么都在同一行,要么都各自一行
41fb726d48Sopenharmony_ciBinPackParameters: false
42fb726d48Sopenharmony_ci# 大括号换行,只有当BreakBeforeBraces设置为Custom时才有效
43fb726d48Sopenharmony_ciBraceWrapping:
44fb726d48Sopenharmony_ci  AfterClass: false
45fb726d48Sopenharmony_ci  AfterControlStatement: false
46fb726d48Sopenharmony_ci  AfterEnum: false
47fb726d48Sopenharmony_ci  AfterFunction: true
48fb726d48Sopenharmony_ci  AfterNamespace: false
49fb726d48Sopenharmony_ci  AfterObjCDeclaration: false
50fb726d48Sopenharmony_ci  AfterStruct: false
51fb726d48Sopenharmony_ci  AfterUnion: false
52fb726d48Sopenharmony_ci  BeforeCatch: false
53fb726d48Sopenharmony_ci  BeforeElse: false
54fb726d48Sopenharmony_ci  IndentBraces: false
55fb726d48Sopenharmony_ci# 在二元运算符前换行: None(在操作符后换行), NonAssignment(在非赋值的操作符前换行), All(在操作符前换行)
56fb726d48Sopenharmony_ciBreakBeforeBinaryOperators: None
57fb726d48Sopenharmony_ci# 在大括号前换行: Attach(始终将大括号附加到周围的上下文), Linux(除函数、命名空间和类定义,与Attach类似),
58fb726d48Sopenharmony_ci#   Mozilla(除枚举、函数、记录定义,与Attach类似), Stroustrup(除函数定义、catch、else,与Attach类似),
59fb726d48Sopenharmony_ci#   Allman(总是在大括号前换行), GNU(总是在大括号前换行,并对于控制语句的大括号增加额外的缩进), WebKit(在函数前换行), Custom
60fb726d48Sopenharmony_ci#   注:这里认为语句块也属于函数
61fb726d48Sopenharmony_ciBreakBeforeBraces: Custom
62fb726d48Sopenharmony_ci# 在三元运算符前换行
63fb726d48Sopenharmony_ciBreakBeforeTernaryOperators: true
64fb726d48Sopenharmony_ci# 在构造函数的初始化列表的逗号前换行
65fb726d48Sopenharmony_ciBreakConstructorInitializersBeforeComma: false
66fb726d48Sopenharmony_ci# 每行字符的限制,0表示没有限制
67fb726d48Sopenharmony_ciColumnLimit: 120
68fb726d48Sopenharmony_ci# 描述具有特殊意义的注释的正则表达式,它不应该被分割为多行或以其它方式改变
69fb726d48Sopenharmony_ciCommentPragmas: "^ IWYU pragma:"
70fb726d48Sopenharmony_ci# 构造函数的初始化列表要么都在同一行,要么都各自一行
71fb726d48Sopenharmony_ciConstructorInitializerAllOnOneLineOrOnePerLine: true
72fb726d48Sopenharmony_ci# 构造函数的初始化列表的缩进宽度
73fb726d48Sopenharmony_ciConstructorInitializerIndentWidth: 4
74fb726d48Sopenharmony_ci# 延续的行的缩进宽度
75fb726d48Sopenharmony_ciContinuationIndentWidth: 4
76fb726d48Sopenharmony_ci# 去除C++11的列表初始化的大括号{后和}前的空格
77fb726d48Sopenharmony_ciCpp11BracedListStyle: true
78fb726d48Sopenharmony_ci# 继承最常用的指针和引用的对齐方式
79fb726d48Sopenharmony_ciDerivePointerAlignment: false
80fb726d48Sopenharmony_ci# 关闭格式化
81fb726d48Sopenharmony_ciDisableFormat: false
82fb726d48Sopenharmony_ci# 自动检测函数的调用和定义是否被格式为每行一个参数(Experimental)
83fb726d48Sopenharmony_ciExperimentalAutoDetectBinPacking: false
84fb726d48Sopenharmony_ci# 需要被解读为foreach循环而不是函数调用的宏
85fb726d48Sopenharmony_ciForEachMacros: [foreach, Q_FOREACH, BOOST_FOREACH]
86fb726d48Sopenharmony_ci# 对#include进行排序,匹配了某正则表达式的#include拥有对应的优先级,匹配不到的则默认优先级为INT_MAX(优先级越小排序越靠前),
87fb726d48Sopenharmony_ci# 可以定义负数优先级从而保证某些#include永远在最前面
88fb726d48Sopenharmony_ci# IncludeCategories:
89fb726d48Sopenharmony_ci#   - Regex: '^"(llvm|llvm-c|clang|clang-c)/'
90fb726d48Sopenharmony_ci#     Priority: 2
91fb726d48Sopenharmony_ci#   - Regex: '^(<|"(gtest|isl|json)/)'
92fb726d48Sopenharmony_ci#     Priority: 3
93fb726d48Sopenharmony_ci#   - Regex: ".*"
94fb726d48Sopenharmony_ci#     Priority: 1
95fb726d48Sopenharmony_ci# 缩进case标签
96fb726d48Sopenharmony_ciIndentCaseLabels: true
97fb726d48Sopenharmony_ci# 缩进宽度
98fb726d48Sopenharmony_ciIndentWidth: 4
99fb726d48Sopenharmony_ci# 函数返回类型换行时,缩进函数声明或函数定义的函数名
100fb726d48Sopenharmony_ciIndentWrappedFunctionNames: true
101fb726d48Sopenharmony_ci# 保留在块开始处的空行
102fb726d48Sopenharmony_ciKeepEmptyLinesAtTheStartOfBlocks: true
103fb726d48Sopenharmony_ci# 开始一个块的宏的正则表达式
104fb726d48Sopenharmony_ciMacroBlockBegin: ""
105fb726d48Sopenharmony_ci# 结束一个块的宏的正则表达式
106fb726d48Sopenharmony_ciMacroBlockEnd: ""
107fb726d48Sopenharmony_ci# 连续空行的最大数量
108fb726d48Sopenharmony_ciMaxEmptyLinesToKeep: 1
109fb726d48Sopenharmony_ci# 命名空间的缩进: None, Inner(缩进嵌套的命名空间中的内容), All
110fb726d48Sopenharmony_ciNamespaceIndentation: None
111fb726d48Sopenharmony_ci# 使用ObjC块时缩进宽度
112fb726d48Sopenharmony_ciObjCBlockIndentWidth: 4
113fb726d48Sopenharmony_ci# 在ObjC的@property后添加一个空格
114fb726d48Sopenharmony_ciObjCSpaceAfterProperty: false
115fb726d48Sopenharmony_ci# 在ObjC的protocol列表前添加一个空格
116fb726d48Sopenharmony_ciObjCSpaceBeforeProtocolList: true
117fb726d48Sopenharmony_ci# 在call(后对函数调用换行的penalty
118fb726d48Sopenharmony_ciPenaltyBreakBeforeFirstCallParameter: 19
119fb726d48Sopenharmony_ci# 在一个注释中引入换行的penalty
120fb726d48Sopenharmony_ciPenaltyBreakComment: 300
121fb726d48Sopenharmony_ci# 第一次在<<前换行的penalty
122fb726d48Sopenharmony_ciPenaltyBreakFirstLessLess: 120
123fb726d48Sopenharmony_ci# 在一个字符串字面量中引入换行的penalty
124fb726d48Sopenharmony_ciPenaltyBreakString: 1000
125fb726d48Sopenharmony_ci# 对于每个在行字符数限制之外的字符的penalt
126fb726d48Sopenharmony_ciPenaltyExcessCharacter: 1000000
127fb726d48Sopenharmony_ci# 将函数的返回类型放到它自己的行的penalty
128fb726d48Sopenharmony_ciPenaltyReturnTypeOnItsOwnLine: 1000
129fb726d48Sopenharmony_ci# 指针和引用的对齐: Left, Right, Middle
130fb726d48Sopenharmony_ciPointerAlignment: Right
131fb726d48Sopenharmony_ci# 允许重新排版注释
132fb726d48Sopenharmony_ciReflowComments: true
133fb726d48Sopenharmony_ci# 允许排序#include
134fb726d48Sopenharmony_ciSortIncludes: false
135fb726d48Sopenharmony_ci# 在C风格类型转换后添加空格
136fb726d48Sopenharmony_ciSpaceAfterCStyleCast: false
137fb726d48Sopenharmony_ci# 在赋值运算符之前添加空格
138fb726d48Sopenharmony_ciSpaceBeforeAssignmentOperators: true
139fb726d48Sopenharmony_ci# 开圆括号之前添加一个空格: Never, ControlStatements, Always
140fb726d48Sopenharmony_ciSpaceBeforeParens: ControlStatements
141fb726d48Sopenharmony_ci# 在空的圆括号中添加空格
142fb726d48Sopenharmony_ciSpaceInEmptyParentheses: false
143fb726d48Sopenharmony_ci# 在尾随的评论前添加的空格数(只适用于//)
144fb726d48Sopenharmony_ciSpacesBeforeTrailingComments: 1
145fb726d48Sopenharmony_ci# 在尖括号的<后和>前添加空格
146fb726d48Sopenharmony_ciSpacesInAngles: false
147fb726d48Sopenharmony_ci# 在容器(ObjC和JavaScript的数组和字典等)字面量中添加空格
148fb726d48Sopenharmony_ciSpacesInContainerLiterals: true
149fb726d48Sopenharmony_ci# 在C风格类型转换的括号中添加空格
150fb726d48Sopenharmony_ciSpacesInCStyleCastParentheses: false
151fb726d48Sopenharmony_ci# 在圆括号的(后和)前添加空格
152fb726d48Sopenharmony_ciSpacesInParentheses: false
153fb726d48Sopenharmony_ci# 在C++11的列表初始化的大括号之前添加空格
154fb726d48Sopenharmony_ci# SpaceBeforeCpp11BracedList: true
155fb726d48Sopenharmony_ci# 在方括号的[后和]前添加空格,lamda表达式和未指明大小的数组的声明不受影响
156fb726d48Sopenharmony_ciSpacesInSquareBrackets: false
157fb726d48Sopenharmony_ci# 标准: Cpp03, Cpp11, Auto
158fb726d48Sopenharmony_ciStandard: Cpp11
159fb726d48Sopenharmony_ci# tab宽度
160fb726d48Sopenharmony_ciTabWidth: 4
161fb726d48Sopenharmony_ci# 使用tab字符: Never, ForIndentation, ForContinuationAndIndentation, Always
162fb726d48Sopenharmony_ciUseTab: Never