You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.2 KiB
45 lines
1.2 KiB
2 years ago
|
---
|
||
|
BasedOnStyle: LLVM
|
||
|
---
|
||
|
Language: Cpp
|
||
|
AccessModifierOffset: -4
|
||
|
|
||
|
BreakBeforeBraces: Attach
|
||
|
|
||
|
# 对齐连续的尾随的注释
|
||
|
AlignTrailingComments: true
|
||
|
AllowAllConstructorInitializersOnNextLine: false
|
||
|
# 允许短的块放在同一行
|
||
|
AllowShortBlocksOnASingleLine: true
|
||
|
# 允许短的case标签放在同一行
|
||
|
AllowShortCaseLabelsOnASingleLine: false
|
||
|
# 允许短的函数放在同一行: None, InlineOnly(定义在类中), Empty(空函数), Inline(定义在类中,空函数), All
|
||
|
AllowShortFunctionsOnASingleLine: Empty
|
||
|
# 允许短的lambda放在同一行
|
||
|
AllowShortLambdasOnASingleLine: Empty
|
||
|
# 允许短的if语句保持在同一行
|
||
|
AllowShortIfStatementsOnASingleLine: true
|
||
|
# 允许短的循环保持在同一行
|
||
|
AllowShortLoopsOnASingleLine: true
|
||
|
AlwaysBreakBeforeMultilineStrings: false
|
||
|
BraceWrapping:
|
||
|
AfterClass: true
|
||
|
AfterControlStatement: Always
|
||
|
AfterEnum: true
|
||
|
AfterFunction: true
|
||
|
AfterStruct: true
|
||
|
AfterUnion: true
|
||
|
AfterExternBlock: true
|
||
|
BeforeCatch: true
|
||
|
BeforeElse: true
|
||
|
|
||
|
CommentPragmas: "^ NOLINT:"
|
||
|
IndentWidth: 4
|
||
|
PointerAlignment: Right
|
||
|
SortIncludes: false
|
||
|
SortUsingDeclarations: false
|
||
|
|
||
|
SpacesBeforeTrailingComments: 1
|
||
|
SpacesInContainerLiterals: false
|
||
|
Standard: Cpp11
|
||
|
TabWidth: 4
|