diff options
| author | Pavel Labath <labath@google.com> | 2015-12-17 09:19:36 +0000 |
|---|---|---|
| committer | Pavel Labath <labath@google.com> | 2015-12-17 09:19:36 +0000 |
| commit | a6c8217c252bad9a6ffc3b3b30173deab8e8a3f1 (patch) | |
| tree | 9347c189b54bfe1bc3fb0bed6a51e4c58da35251 | |
| parent | 7b72b658cc9bf083d413fa34863eee956c3d03eb (diff) | |
| download | bcm5719-llvm-a6c8217c252bad9a6ffc3b3b30173deab8e8a3f1.tar.gz bcm5719-llvm-a6c8217c252bad9a6ffc3b3b30173deab8e8a3f1.zip | |
Add AccessModifierOffset to clang-format style
Summary:
As we override the indent option of the LLVM style, we need to override the access modifier
offset as well. Otherwise, classes will be formatted like such
class A
{
public:
int foo;
};
which is not used anywhere in LLDB. This option makes clang-format style more similar to LLDB and
brings it closer to the original intention of LLVM style, which was to not indent access
modifiers.
Reviewers: zturner, tfiala
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D15562
llvm-svn: 255882
| -rw-r--r-- | lldb/.clang-format | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/.clang-format b/lldb/.clang-format index b0a17d1d45b..cf199fc7596 100644 --- a/lldb/.clang-format +++ b/lldb/.clang-format @@ -6,3 +6,4 @@ AlwaysBreakAfterDefinitionReturnType: true AllowShortFunctionsOnASingleLine: Inline ConstructorInitializerAllOnOneLineOrOnePerLine: true IndentCaseLabels: true +AccessModifierOffset: -4 |

