labath created this revision.
labath added reviewers: zturner, tfiala.
labath added a subscriber: lldb-commits.

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.

http://reviews.llvm.org/D15562

Files:
  .clang-format

Index: .clang-format
===================================================================
--- .clang-format
+++ .clang-format
@@ -6,3 +6,4 @@
 AllowShortFunctionsOnASingleLine: Inline
 ConstructorInitializerAllOnOneLineOrOnePerLine: true
 IndentCaseLabels: true
+AccessModifierOffset: -4


Index: .clang-format
===================================================================
--- .clang-format
+++ .clang-format
@@ -6,3 +6,4 @@
 AllowShortFunctionsOnASingleLine: Inline
 ConstructorInitializerAllOnOneLineOrOnePerLine: true
 IndentCaseLabels: true
+AccessModifierOffset: -4
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to