[llvm-bugs] [Bug 32017] New: [clang-format] Should put on a new line every classes when more than one is used

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Feb 20 02:21:25 PST 2017


https://bugs.llvm.org/show_bug.cgi?id=32017

            Bug ID: 32017
           Summary: [clang-format] Should put on a new line every classes
                    when more than one is used
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: sylvestre at debian.org
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org

With Mozilla coding style

We should have:
class MyClass
  : public X  // When deriving from more than one class, put each on its own
line.
  , public Y

and clang-format will give us:
class MyClass : public X // When deriving from more than one class, put each on
                         // its own line.
                ,
                public Y

We should probably add an option to manage this case.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170220/fe970819/attachment-0001.html>


More information about the llvm-bugs mailing list