[all-commits] [llvm/llvm-project] 09b75f: [clang-format] New BreakInheritanceList style Afte...

zhihaoy via All-commits all-commits at lists.llvm.org
Fri May 28 16:24:36 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 09b75f480d1d578d48307fd7f3b024b66a75712f
      https://github.com/llvm/llvm-project/commit/09b75f480d1d578d48307fd7f3b024b66a75712f
  Author: Zhihao Yuan <zhihao.yuan at broadcom.com>
  Date:   2021-05-28 (Fri, 28 May 2021)

  Changed paths:
    M clang/docs/ClangFormatStyleOptions.rst
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Format/Format.h
    M clang/lib/Format/Format.cpp
    M clang/lib/Format/TokenAnnotator.cpp
    M clang/unittests/Format/FormatTest.cpp

  Log Message:
  -----------
  [clang-format] New BreakInheritanceList style AfterComma

This inheritance list style has been widely adopted by Symantec,
a division of Broadcom Inc. It breaks after the commas that
separate the base-specifiers:

    class Derived : public Base1,
                    private Base2
    {
    };

Differential Revision: https://reviews.llvm.org/D103204




More information about the All-commits mailing list