Skip to content

Commit

Permalink
Add AccessModifierOffset to clang-format style
Browse files Browse the repository at this point in the history
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
  • Loading branch information
labath committed Dec 17, 2015
1 parent 7b72b65 commit a6c8217
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lldb/.clang-format
Expand Up @@ -6,3 +6,4 @@ AlwaysBreakAfterDefinitionReturnType: true
AllowShortFunctionsOnASingleLine: Inline
ConstructorInitializerAllOnOneLineOrOnePerLine: true
IndentCaseLabels: true
AccessModifierOffset: -4

0 comments on commit a6c8217

Please sign in to comment.