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 { };
Paths
| Differential D103204
[clang-format] New BreakInheritanceList style AfterComma ClosedPublic Authored by lichray on May 26 2021, 1:43 PM.
Details Summary This inheritance list style has been widely adopted by Symantec, class Derived : public Base1, private Base2 { };
Diff Detail
Event Timelinelichray retitled this revision from [Format] New BreakInheritanceList style AfterComma to [clang-format] New BreakInheritanceList style AfterComma.May 26 2021, 10:45 PM Comment Actions Adding such a feature like this needs unit tests, it won't be let in without them, you need to add them to clang/unittest/Format/Format.cpp You also need to update the ReleaseNotes.rst to mention this. This revision now requires changes to proceed.May 27 2021, 3:17 AM HazardyKnusperkeks added inline comments.
Comment Actions
Done. This revision is now accepted and ready to land.May 28 2021, 5:15 AM This revision was landed with ongoing or failed builds.May 28 2021, 4:24 PM Closed by commit rG09b75f480d1d: [clang-format] New BreakInheritanceList style AfterComma (authored by lichray). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 348424 clang/docs/ClangFormatStyleOptions.rst
clang/docs/ReleaseNotes.rst
clang/include/clang/Format/Format.h
clang/lib/Format/Format.cpp
clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTest.cpp
|
Maybe add a comma, so that the next addition will not need to modify this line?