forked from LineageOS/android_system_core
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a 2 width option of clang format.
Make the default the 4 tab space version. Add a link to the 2 space version for libbacktrace. The only other difference between the 4 space and 2 space tab version is that the 2 space tab version allows short functions on a single line. This is for things like constructors, short destructors, or accessor functions. I believe this is closer to the Google C++ style guide. Bug: 36046320 Test: NA Change-Id: Ida08db18902eeb101f42869dd5590182529d54ef
- Loading branch information
1 parent
ce7ee08
commit a78d9a2
Showing
4 changed files
with
28 additions
and
13 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
.clang-format-4 |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
BasedOnStyle: Google | ||
AllowShortBlocksOnASingleLine: false | ||
AllowShortFunctionsOnASingleLine: true | ||
|
||
AccessModifierOffset: -1 | ||
ColumnLimit: 100 | ||
CommentPragmas: NOLINT:.* | ||
DerivePointerAlignment: false | ||
IndentWidth: 2 | ||
PointerAlignment: Left | ||
TabWidth: 2 | ||
UseTab: Never | ||
PenaltyExcessCharacter: 32 |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
BasedOnStyle: Google | ||
AllowShortBlocksOnASingleLine: false | ||
AllowShortFunctionsOnASingleLine: false | ||
|
||
AccessModifierOffset: -2 | ||
ColumnLimit: 100 | ||
CommentPragmas: NOLINT:.* | ||
DerivePointerAlignment: false | ||
IndentWidth: 4 | ||
PointerAlignment: Left | ||
TabWidth: 4 | ||
UseTab: Never | ||
PenaltyExcessCharacter: 32 |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
../.clang-format-2 |