Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update .clang-format and apply to existing files. (#558)
- Loading branch information
Showing
97 changed files
with
1,367 additions
and
1,407 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,32 @@ | ||
Language: ObjC | ||
BasedOnStyle: Google | ||
Language: Cpp | ||
Standard: Cpp11 | ||
|
||
# Disable ColumnLimit because it causes some very weird line breaks. | ||
# For ObjC the limit is 100 | ||
# For Cpp the limit is 80 | ||
ColumnLimit: 0 | ||
IndentWidth: 2 | ||
ObjCBlockIndentWidth: 2 | ||
ContinuationIndentWidth: 2 | ||
|
||
# For ObjC, the line limit is 100 | ||
ColumnLimit: 100 | ||
|
||
# Allow short case statements to be on a single line | ||
AllowShortCaseLabelsOnASingleLine: true | ||
|
||
# Ban short loops and functions on a single line | ||
AllowShortLoopsOnASingleLine: false | ||
AllowShortFunctionsOnASingleLine: false | ||
AllowShortFunctionsOnASingleLine: Inline | ||
|
||
# Allow spaces in NSArray/NSDictionary literals @[ and @{ | ||
SpacesInContainerLiterals: true | ||
|
||
# For pointers, always put the * next to the variable name. | ||
DerivePointerAlignment: false | ||
PointerAlignment: Right | ||
|
||
|
||
--- | ||
Language: Cpp | ||
Standard: Cpp11 | ||
|
||
BasedOnStyle: Google | ||
|
||
# For C++, the line limit is 80 | ||
ColumnLimit: 80 |
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.