123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- # 基于配置文件
- BasedOnStyle: LLVM
- # 访问说明符的偏移(public private)
- AccessModifierOffset: -4
- # 括号之后,水平对齐参数: Align DontAlign AlwaysBreak
- AlignAfterOpenBracket: Align
- # 连续的赋值时,对齐所有的等号
- AlignConsecutiveAssignments: true
- # 连续声明时,对齐所有声明的变量名
- AlignConsecutiveDeclarations: true
- # 左对齐换行(使用反斜杠换行)的反斜杠
- AlignEscapedNewlinesLeft: true
- # 水平对齐二元和三元表达式的操作数
- AlignOperands: true
- # 对齐连续的尾随的注释
- AlignTrailingComments: true
- # 对齐连续的宏定义
- AlignConsecutiveMacros: true
- # 允许函数声明的所有参数在放在下一行
- AllowAllParametersOfDeclarationOnNextLine: true
- # 允许短的块放在同一行
- AllowShortBlocksOnASingleLine : true
- # 允许短的case标签放在同一行
- AllowShortCaseLabelsOnASingleLine: false
- # 允许短的函数放在同一行: None, InlineOnly(定义在类中), Empty(空函数), Inline(定义在类中,空函数), All
- AllowShortFunctionsOnASingleLine: Empty
- # 是否允许短if单行 If true, if (a) return; 可以放到同一行
- AllowShortIfStatementsOnASingleLine: false
- # 允许短的循环保持在同一行
- AllowShortLoopsOnASingleLine: false
- # 总是在定义返回类型后换行(deprecated)
- AlwaysBreakAfterDefinitionReturnType: None
- # 每行字符的限制,0表示没有限制
- ColumnLimit: 150
- # 描述具有特殊意义的注释的正则表达式,它不应该被分割为多行或以其它方式改变
- CommentPragmas: '^(/\*|\s*/\*|\s*\*)'
- # 语言: None Cpp Java Objc Protp
- Language: Cpp
- # 指针的*的挨着哪边
- PointerAlignment: Right
- #缩进宽度
- IndentWidth: 4
- # 连续的空行保留几行
- MaxEmptyLinesToKeep: 1
- # 在 @property 后面添加空格, \@property (readonly) 而不是 \@property(readonly).
- ObjCSpaceAfterProperty: true
- # OC block后面的缩进
- ObjCBlockIndentWidth: 4
- # 是否允许短方法单行
- AllowShortFunctionsOnASingleLine: false
- # 换行的时候对齐操作符
- # AlignOperands: true
- # 中括号两边空格 []
- SpacesInSquareBrackets: false
- # 小括号两边添加空格
- SpacesInParentheses : false
- #等号两边的空格
- SpaceBeforeAssignmentOperators: true
- # 容器类的空格 例如 OC的字典
- SpacesInContainerLiterals: true
- #缩进
- IndentWrappedFunctionNames: true
- #在block从空行开始
- KeepEmptyLinesAtTheStartOfBlocks: true
- #在构造函数初始化时按逗号断行,并以冒号对齐
- BreakConstructorInitializersBeforeComma: true
- #括号后添加空格
- SpaceAfterCStyleCast: false
- # 允许排序#include, 造成编译错误
- SortIncludes: false
- # 缩进case 标签
- IndentCaseLabels: false
- #tab键盘的宽度
- TabWidth: 4
- UseTab: Never
- # 大括号换行方式
- BreakBeforeBraces: Custom
- BraceWrapping:
- # class定义后面
- AfterClass: true
- # 控制语句后面
- AfterControlStatement: true
- # enum定义后面
- AfterEnum: true
- # 函数定义后面
- AfterFunction: true
- # 命名空间定义后面
- AfterNamespace: true
- # struct定义后面
- AfterStruct: true
- # union定义后面
- AfterUnion: true
- # extern之后
- AfterExternBlock: false
- # catch之前
- BeforeCatch: true
- # else之前
- BeforeElse: true
- # 缩进大括号
- IndentBraces: false
- # 分离空函数
- SplitEmptyFunction: false
- # 分离空语句
- SplitEmptyRecord: false
- # 分离空命名空间
- SplitEmptyNamespace: false
- # 缩进换行的括号
- IndentBraces: false
|