12b7e0694Sopenharmony_ciLanguage: Cpp
22b7e0694Sopenharmony_ci# BasedOnStyle:  LLVM
32b7e0694Sopenharmony_ci# 访问说明符(public、private等)的偏移
42b7e0694Sopenharmony_ciAccessModifierOffset: -4
52b7e0694Sopenharmony_ci# 开括号(开圆括号、开尖括号、开方括号)后的对齐
62b7e0694Sopenharmony_ciAlignAfterOpenBracket: Align
72b7e0694Sopenharmony_ci# 连续赋值时,等号对齐
82b7e0694Sopenharmony_ciAlignConsecutiveAssignments: false
92b7e0694Sopenharmony_ci# 连续赋值时,变量名对齐
102b7e0694Sopenharmony_ciAlignConsecutiveDeclarations: false
112b7e0694Sopenharmony_ci# 左对齐逃脱换行(使用反斜杠换行)的反斜杠
122b7e0694Sopenharmony_ciAlignEscapedNewlinesLeft: true
132b7e0694Sopenharmony_ci# 水平对齐二元和三元表达式的操作数
142b7e0694Sopenharmony_ciAlignOperands: true
152b7e0694Sopenharmony_ci# 对齐连续的尾随的注释
162b7e0694Sopenharmony_ciAlignTrailingComments: true
172b7e0694Sopenharmony_ci# 允许函数声明的所有参数在放在下一行
182b7e0694Sopenharmony_ciAllowAllParametersOfDeclarationOnNextLine: false
192b7e0694Sopenharmony_ci# 允许短的块放在同一行
202b7e0694Sopenharmony_ciAllowShortBlocksOnASingleLine: false
212b7e0694Sopenharmony_ci# 允许短的case标签放在同一行
222b7e0694Sopenharmony_ciAllowShortCaseLabelsOnASingleLine: false
232b7e0694Sopenharmony_ci# 允许短的函数放在同一行: None, InlineOnly(定义在类中), Empty(空函数), Inline(定义在类中,空函数), All
242b7e0694Sopenharmony_ciAllowShortFunctionsOnASingleLine: Empty
252b7e0694Sopenharmony_ci# 允许短的if语句保持在同一行
262b7e0694Sopenharmony_ciAllowShortIfStatementsOnASingleLine: false
272b7e0694Sopenharmony_ci# 允许短的循环保持在同一行
282b7e0694Sopenharmony_ciAllowShortLoopsOnASingleLine: false
292b7e0694Sopenharmony_ci# 总是在定义返回类型后换行(deprecated)
302b7e0694Sopenharmony_ciAlwaysBreakAfterDefinitionReturnType: None
312b7e0694Sopenharmony_ci# 总是在返回类型后换行: None, All, TopLevel(顶级函数,不包括在类中的函数),
322b7e0694Sopenharmony_ci#   AllDefinitions(所有的定义,不包括声明), TopLevelDefinitions(所有的顶级函数的定义)
332b7e0694Sopenharmony_ciAlwaysBreakAfterReturnType: None
342b7e0694Sopenharmony_ci# 总是在多行string字面量前换行
352b7e0694Sopenharmony_ciAlwaysBreakBeforeMultilineStrings: true
362b7e0694Sopenharmony_ci# 总是在template声明后换行
372b7e0694Sopenharmony_ciAlwaysBreakTemplateDeclarations: false
382b7e0694Sopenharmony_ci# false表示函数实参要么都在同一行,要么都各自一行
392b7e0694Sopenharmony_ciBinPackArguments: true
402b7e0694Sopenharmony_ci# false表示所有形参要么都在同一行,要么都各自一行
412b7e0694Sopenharmony_ciBinPackParameters: false
422b7e0694Sopenharmony_ci# 大括号换行,只有当BreakBeforeBraces设置为Custom时才有效
432b7e0694Sopenharmony_ciBraceWrapping:
442b7e0694Sopenharmony_ci  AfterClass: false
452b7e0694Sopenharmony_ci  AfterControlStatement: false
462b7e0694Sopenharmony_ci  AfterEnum: false
472b7e0694Sopenharmony_ci  AfterFunction: true
482b7e0694Sopenharmony_ci  AfterNamespace: false
492b7e0694Sopenharmony_ci  AfterObjCDeclaration: false
502b7e0694Sopenharmony_ci  AfterStruct: false
512b7e0694Sopenharmony_ci  AfterUnion: false
522b7e0694Sopenharmony_ci  BeforeCatch: false
532b7e0694Sopenharmony_ci  BeforeElse: false
542b7e0694Sopenharmony_ci  IndentBraces: false
552b7e0694Sopenharmony_ci# 在二元运算符前换行: None(在操作符后换行), NonAssignment(在非赋值的操作符前换行), All(在操作符前换行)
562b7e0694Sopenharmony_ciBreakBeforeBinaryOperators: None
572b7e0694Sopenharmony_ci# 在大括号前换行: Attach(始终将大括号附加到周围的上下文), Linux(除函数、命名空间和类定义,与Attach类似),
582b7e0694Sopenharmony_ci#   Mozilla(除枚举、函数、记录定义,与Attach类似), Stroustrup(除函数定义、catch、else,与Attach类似),
592b7e0694Sopenharmony_ci#   Allman(总是在大括号前换行), GNU(总是在大括号前换行,并对于控制语句的大括号增加额外的缩进), WebKit(在函数前换行), Custom
602b7e0694Sopenharmony_ci#   注:这里认为语句块也属于函数
612b7e0694Sopenharmony_ciBreakBeforeBraces: Custom
622b7e0694Sopenharmony_ci# 在三元运算符前换行
632b7e0694Sopenharmony_ciBreakBeforeTernaryOperators: true
642b7e0694Sopenharmony_ci# 在构造函数的初始化列表的逗号前换行
652b7e0694Sopenharmony_ciBreakConstructorInitializersBeforeComma: false
662b7e0694Sopenharmony_ci# 每行字符的限制,0表示没有限制
672b7e0694Sopenharmony_ciColumnLimit: 120
682b7e0694Sopenharmony_ci# 描述具有特殊意义的注释的正则表达式,它不应该被分割为多行或以其它方式改变
692b7e0694Sopenharmony_ciCommentPragmas: "^ IWYU pragma:"
702b7e0694Sopenharmony_ci# 构造函数的初始化列表要么都在同一行,要么都各自一行
712b7e0694Sopenharmony_ciConstructorInitializerAllOnOneLineOrOnePerLine: true
722b7e0694Sopenharmony_ci# 构造函数的初始化列表的缩进宽度
732b7e0694Sopenharmony_ciConstructorInitializerIndentWidth: 4
742b7e0694Sopenharmony_ci# 延续的行的缩进宽度
752b7e0694Sopenharmony_ciContinuationIndentWidth: 4
762b7e0694Sopenharmony_ci# 去除C++11的列表初始化的大括号{后和}前的空格
772b7e0694Sopenharmony_ciCpp11BracedListStyle: true
782b7e0694Sopenharmony_ci# 继承最常用的指针和引用的对齐方式
792b7e0694Sopenharmony_ciDerivePointerAlignment: false
802b7e0694Sopenharmony_ci# 关闭格式化
812b7e0694Sopenharmony_ciDisableFormat: false
822b7e0694Sopenharmony_ci# 自动检测函数的调用和定义是否被格式为每行一个参数(Experimental)
832b7e0694Sopenharmony_ciExperimentalAutoDetectBinPacking: false
842b7e0694Sopenharmony_ci# 需要被解读为foreach循环而不是函数调用的宏
852b7e0694Sopenharmony_ciForEachMacros: [foreach, Q_FOREACH, BOOST_FOREACH]
862b7e0694Sopenharmony_ci# 对#include进行排序,匹配了某正则表达式的#include拥有对应的优先级,匹配不到的则默认优先级为INT_MAX(优先级越小排序越靠前),
872b7e0694Sopenharmony_ci# 可以定义负数优先级从而保证某些#include永远在最前面
882b7e0694Sopenharmony_ciIncludeCategories:
892b7e0694Sopenharmony_ci  - Regex: '^"(llvm|llvm-c|clang|clang-c)/'
902b7e0694Sopenharmony_ci    Priority: 2
912b7e0694Sopenharmony_ci  - Regex: '^(<|"(gtest|isl|json)/)'
922b7e0694Sopenharmony_ci    Priority: 3
932b7e0694Sopenharmony_ci  - Regex: ".*"
942b7e0694Sopenharmony_ci    Priority: 1
952b7e0694Sopenharmony_ci# 缩进case标签
962b7e0694Sopenharmony_ciIndentCaseLabels: true
972b7e0694Sopenharmony_ci# 缩进宽度
982b7e0694Sopenharmony_ciIndentWidth: 4
992b7e0694Sopenharmony_ci# 函数返回类型换行时,缩进函数声明或函数定义的函数名
1002b7e0694Sopenharmony_ciIndentWrappedFunctionNames: true
1012b7e0694Sopenharmony_ci# 保留在块开始处的空行
1022b7e0694Sopenharmony_ciKeepEmptyLinesAtTheStartOfBlocks: true
1032b7e0694Sopenharmony_ci# 开始一个块的宏的正则表达式
1042b7e0694Sopenharmony_ciMacroBlockBegin: ""
1052b7e0694Sopenharmony_ci# 结束一个块的宏的正则表达式
1062b7e0694Sopenharmony_ciMacroBlockEnd: ""
1072b7e0694Sopenharmony_ci# 连续空行的最大数量
1082b7e0694Sopenharmony_ciMaxEmptyLinesToKeep: 1
1092b7e0694Sopenharmony_ci# 命名空间的缩进: None, Inner(缩进嵌套的命名空间中的内容), All
1102b7e0694Sopenharmony_ciNamespaceIndentation: None
1112b7e0694Sopenharmony_ci# 使用ObjC块时缩进宽度
1122b7e0694Sopenharmony_ciObjCBlockIndentWidth: 4
1132b7e0694Sopenharmony_ci# 在ObjC的@property后添加一个空格
1142b7e0694Sopenharmony_ciObjCSpaceAfterProperty: false
1152b7e0694Sopenharmony_ci# 在ObjC的protocol列表前添加一个空格
1162b7e0694Sopenharmony_ciObjCSpaceBeforeProtocolList: true
1172b7e0694Sopenharmony_ci# 在call(后对函数调用换行的penalty
1182b7e0694Sopenharmony_ciPenaltyBreakBeforeFirstCallParameter: 19
1192b7e0694Sopenharmony_ci# 在一个注释中引入换行的penalty
1202b7e0694Sopenharmony_ciPenaltyBreakComment: 300
1212b7e0694Sopenharmony_ci# 第一次在<<前换行的penalty
1222b7e0694Sopenharmony_ciPenaltyBreakFirstLessLess: 120
1232b7e0694Sopenharmony_ci# 在一个字符串字面量中引入换行的penalty
1242b7e0694Sopenharmony_ciPenaltyBreakString: 1000
1252b7e0694Sopenharmony_ci# 对于每个在行字符数限制之外的字符的penalty
1262b7e0694Sopenharmony_ciPenaltyExcessCharacter: 1000000
1272b7e0694Sopenharmony_ci# 将函数的返回类型放到它自己的行的penalty
1282b7e0694Sopenharmony_ciPenaltyReturnTypeOnItsOwnLine: 6000
1292b7e0694Sopenharmony_ci# 指针和引用的对齐: Left, Right, Middle
1302b7e0694Sopenharmony_ciPointerAlignment: Right
1312b7e0694Sopenharmony_ci# 允许重新排版注释
1322b7e0694Sopenharmony_ciReflowComments: true
1332b7e0694Sopenharmony_ci# 允许排序#include
1342b7e0694Sopenharmony_ciSortIncludes: false
1352b7e0694Sopenharmony_ci# 在C风格类型转换后添加空格
1362b7e0694Sopenharmony_ciSpaceAfterCStyleCast: false
1372b7e0694Sopenharmony_ci# 在赋值运算符之前添加空格
1382b7e0694Sopenharmony_ciSpaceBeforeAssignmentOperators: true
1392b7e0694Sopenharmony_ci# 开圆括号之前添加一个空格: Never, ControlStatements, Always
1402b7e0694Sopenharmony_ciSpaceBeforeParens: ControlStatements
1412b7e0694Sopenharmony_ci# 在空的圆括号中添加空格
1422b7e0694Sopenharmony_ciSpaceInEmptyParentheses: false
1432b7e0694Sopenharmony_ci# 在尾随的评论前添加的空格数(只适用于//)
1442b7e0694Sopenharmony_ciSpacesBeforeTrailingComments: 1
1452b7e0694Sopenharmony_ci# 在尖括号的<后和>前添加空格
1462b7e0694Sopenharmony_ciSpacesInAngles: false
1472b7e0694Sopenharmony_ci# 在容器(ObjC和JavaScript的数组和字典等)字面量中添加空格
1482b7e0694Sopenharmony_ciSpacesInContainerLiterals: true
1492b7e0694Sopenharmony_ci# 在C风格类型转换的括号中添加空格
1502b7e0694Sopenharmony_ciSpacesInCStyleCastParentheses: false
1512b7e0694Sopenharmony_ci# 在圆括号的(后和)前添加空格
1522b7e0694Sopenharmony_ciSpacesInParentheses: false
1532b7e0694Sopenharmony_ci# 在方括号的[后和]前添加空格,lamda表达式和未指明大小的数组的声明不受影响
1542b7e0694Sopenharmony_ciSpacesInSquareBrackets: false
1552b7e0694Sopenharmony_ci# 标准: Cpp03, Cpp11, Auto
1562b7e0694Sopenharmony_ciStandard: Cpp11
1572b7e0694Sopenharmony_ci# tab宽度
1582b7e0694Sopenharmony_ciTabWidth: 4
1592b7e0694Sopenharmony_ci# 使用tab字符: Never, ForIndentation, ForContinuationAndIndentation, Always
1602b7e0694Sopenharmony_ciUseTab: Never
161