jingjiangli | 40b306c | 2022-01-23 18:08:49 -0800 | [diff] [blame] | 1 | # Trusty Style |
| 2 | # This is a Google-derived style with 4-space indent and a few quirks for |
| 3 | # systems code. |
| 4 | BasedOnStyle: Chromium |
| 5 | # 4-space indent, no tabs. |
| 6 | IndentWidth: 4 |
| 7 | UseTab: Never |
| 8 | TabWidth: 4 |
| 9 | # Double indent arguments when none of them are on the first line. |
| 10 | ContinuationIndentWidth: 8 |
| 11 | ConstructorInitializerIndentWidth: 8 |
| 12 | # Don't indent public/private/protected. |
| 13 | # It's a little more common to do a half indent, but folks didn't like that. |
| 14 | AccessModifierOffset: -4 |
| 15 | # Don't indent case labels. |
| 16 | IndentCaseLabels: false |
| 17 | # Don't break strings to make it easier to grep for error messages. |
| 18 | # Note: this can result in lines that exceed the column limit. |
| 19 | BreakStringLiterals: false |
| 20 | |