|
1 | | -# Generated from CLion C/C++ Code Style settings |
| 1 | +--- |
2 | 2 | BasedOnStyle: LLVM |
3 | | -AccessModifierOffset: -4 |
4 | | -AlignAfterOpenBracket: Align |
5 | | -# AlignConsecutiveAssignments: None |
6 | | -AlignOperands: Align |
7 | | -AllowAllArgumentsOnNextLine: false |
8 | | -AllowAllConstructorInitializersOnNextLine: false |
9 | | -AllowAllParametersOfDeclarationOnNextLine: false |
10 | | -AllowShortBlocksOnASingleLine: Always |
11 | | -AllowShortCaseLabelsOnASingleLine: false |
12 | | -AllowShortFunctionsOnASingleLine: All |
13 | | -AllowShortIfStatementsOnASingleLine: Always |
14 | | -AllowShortLambdasOnASingleLine: All |
15 | | -AllowShortLoopsOnASingleLine: true |
16 | | -AlwaysBreakAfterReturnType: None |
17 | | -AlwaysBreakTemplateDeclarations: No |
18 | | -BreakBeforeBraces: Custom |
| 3 | +IndentWidth: 4 # 缩进宽度,LLVM 默认值为 2,改为 4 |
| 4 | +AccessModifierOffset: -4 # public/protected/private 访问控制符相对成员的偏移,与 IndentWidth 配合,LLVM 默认值为 -2 |
| 5 | +AlignOperands: AlignAfterOperator # 双目运算符的行间对齐,LLVM 默认值为 Align,改为带符号一起换行 |
| 6 | +BreakBeforeBinaryOperators: All # 在双目运算符之前换行,LLVM 默认值为 None,改为换行时总是把双目运算符放在行首,包括赋值(=) |
| 7 | +ColumnLimit: 0 # 列宽限制,LLVM 默认值为 80,改为不限制 |
| 8 | +AllowShortBlocksOnASingleLine: Always # 是否允许短块(单个语句的块)不换行,LLVM 默认值为 Never,改为允许 |
| 9 | +AllowShortLoopsOnASingleLine: true # 是否允许短循环不换行,LLVM 默认值为 false,改为允许 |
| 10 | +InsertBraces: true # 是否在 if/for/while/switch 等语句后插入大括号,LLVM 默认值为 false,改为允许 |
| 11 | +BreakBeforeBraces: Custom # 大括号换行配置,LLVM 默认值为 LLVM,改为自定义以使 BraceWrapping 生效 |
19 | 12 | BraceWrapping: |
20 | 13 | AfterCaseLabel: false |
21 | 14 | AfterClass: false |
22 | 15 | AfterControlStatement: Never |
23 | 16 | AfterEnum: false |
24 | 17 | AfterFunction: false |
25 | 18 | AfterNamespace: false |
| 19 | + AfterObjCDeclaration: false |
| 20 | + AfterStruct: false |
26 | 21 | AfterUnion: false |
| 22 | + AfterExternBlock: false |
27 | 23 | BeforeCatch: false |
28 | 24 | BeforeElse: false |
| 25 | + BeforeLambdaBody: false |
| 26 | + BeforeWhile: false |
29 | 27 | IndentBraces: false |
30 | | - SplitEmptyFunction: false |
| 28 | + SplitEmptyFunction: true |
31 | 29 | SplitEmptyRecord: true |
32 | | -BreakBeforeBinaryOperators: None |
33 | | -BreakBeforeTernaryOperators: true |
34 | | -BreakConstructorInitializers: BeforeColon |
35 | | -BreakInheritanceList: BeforeColon |
36 | | -ColumnLimit: 0 |
37 | | -CompactNamespaces: true |
38 | | -ContinuationIndentWidth: 4 |
39 | | -IndentCaseLabels: true |
40 | | -IndentPPDirectives: None |
41 | | -IndentWidth: 4 |
42 | | -KeepEmptyLinesAtTheStartOfBlocks: true |
43 | | -MaxEmptyLinesToKeep: 2 |
44 | | -NamespaceIndentation: All |
45 | | -ObjCSpaceAfterProperty: false |
46 | | -ObjCSpaceBeforeProtocolList: true |
47 | | -PointerAlignment: Right |
48 | | -ReflowComments: false |
49 | | -SpaceAfterCStyleCast: true |
50 | | -SpaceAfterLogicalNot: false |
51 | | -SpaceAfterTemplateKeyword: false |
52 | | -SpaceBeforeAssignmentOperators: true |
53 | | -SpaceBeforeCpp11BracedList: false |
54 | | -SpaceBeforeCtorInitializerColon: true |
55 | | -SpaceBeforeInheritanceColon: true |
56 | | -SpaceBeforeParens: ControlStatements |
57 | | -SpaceBeforeRangeBasedForLoopColon: true |
58 | | -SpaceInEmptyParentheses: false |
59 | | -SpacesBeforeTrailingComments: 0 |
60 | | -SpacesInAngles: false |
61 | | -SpacesInCStyleCastParentheses: false |
62 | | -SpacesInContainerLiterals: false |
63 | | -SpacesInParentheses: false |
64 | | -SpacesInSquareBrackets: false |
65 | | -TabWidth: 4 |
66 | | -UseTab: Never |
| 30 | + SplitEmptyNamespace: true |
0 commit comments