mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-12-24 17:51:58 +00:00
[Upd] C++代码格式化配置
This commit is contained in:
parent
3d98210ff3
commit
399e3af668
@ -7,9 +7,9 @@ AccessModifierOffset: -2
|
|||||||
# 开括号(开圆括号、开尖括号、开方括号)后的对齐: Align, DontAlign, AlwaysBreak(总是在开括号后换行)
|
# 开括号(开圆括号、开尖括号、开方括号)后的对齐: Align, DontAlign, AlwaysBreak(总是在开括号后换行)
|
||||||
AlignAfterOpenBracket: Align
|
AlignAfterOpenBracket: Align
|
||||||
# 连续赋值时,对齐所有等号
|
# 连续赋值时,对齐所有等号
|
||||||
AlignConsecutiveAssignments: true
|
AlignConsecutiveAssignments: false
|
||||||
# 连续声明时,对齐所有声明的变量名
|
# 连续声明时,对齐所有声明的变量名
|
||||||
AlignConsecutiveDeclarations: true
|
AlignConsecutiveDeclarations: false
|
||||||
|
|
||||||
AlignEscapedNewlines: Right
|
AlignEscapedNewlines: Right
|
||||||
|
|
||||||
@ -29,9 +29,9 @@ AllowShortCaseLabelsOnASingleLine: true
|
|||||||
# 允许短的函数放在同一行: None, InlineOnly(定义在类中), Empty(空函数), Inline(定义在类中,空函数), All
|
# 允许短的函数放在同一行: None, InlineOnly(定义在类中), Empty(空函数), Inline(定义在类中,空函数), All
|
||||||
AllowShortFunctionsOnASingleLine: Empty
|
AllowShortFunctionsOnASingleLine: Empty
|
||||||
# 允许短的if语句保持在同一行
|
# 允许短的if语句保持在同一行
|
||||||
AllowShortIfStatementsOnASingleLine: false
|
AllowShortIfStatementsOnASingleLine: true
|
||||||
# 允许短的循环保持在同一行
|
# 允许短的循环保持在同一行
|
||||||
AllowShortLoopsOnASingleLine: false
|
AllowShortLoopsOnASingleLine: true
|
||||||
|
|
||||||
# 总是在定义返回类型后换行(deprecated)
|
# 总是在定义返回类型后换行(deprecated)
|
||||||
AlwaysBreakAfterDefinitionReturnType: None
|
AlwaysBreakAfterDefinitionReturnType: None
|
||||||
|
Loading…
Reference in New Issue
Block a user