Created
July 29, 2015 13:51
-
-
Save xiekw2010/29f924ead4734f72f687 to your computer and use it in GitHub Desktop.
Clang-format base on google
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BasedOnStyle: Google | |
# @public等访问修饰符相对IndentWidth的偏移,@public缩进2个空格(4 + (-2)) | |
AccessModifierOffset: -2 | |
# 赋值语句等号对齐 | |
AlignConsecutiveAssignments: false | |
# 缩进改为4个空格 | |
IndentWidth: 4 | |
ObjCBlockIndentWidth: 4 | |
# 每行最多100个字符 | |
ColumnLimit: 0 | |
# case和switch对齐,不缩进 | |
IndentCaseLabels: true | |
# if语句必须折行,即使可以单行显示 | |
AllowShortIfStatementsOnASingleLine: true | |
# 循环语句必须折行,即使可以单行显示 | |
AllowShortLoopsOnASingleLine: false | |
# property 后面一个空格 | |
ObjCSpaceAfterProperty: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment