[Lldb-commits] [lldb] r255882 - Add AccessModifierOffset to clang-format style

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Thu Dec 17 01:19:37 PST 2015


Author: labath
Date: Thu Dec 17 03:19:36 2015
New Revision: 255882

URL: http://llvm.org/viewvc/llvm-project?rev=255882&view=rev
Log:
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

Modified:
    lldb/trunk/.clang-format

Modified: lldb/trunk/.clang-format
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/.clang-format?rev=255882&r1=255881&r2=255882&view=diff
==============================================================================
--- lldb/trunk/.clang-format (original)
+++ lldb/trunk/.clang-format Thu Dec 17 03:19:36 2015
@@ -6,3 +6,4 @@ AlwaysBreakAfterDefinitionReturnType: tr
 AllowShortFunctionsOnASingleLine: Inline
 ConstructorInitializerAllOnOneLineOrOnePerLine: true
 IndentCaseLabels: true
+AccessModifierOffset: -4




More information about the lldb-commits mailing list