HomePhabricator

clang-format: Introduce BreakInheritanceList option

Description

clang-format: Introduce BreakInheritanceList option

Summary:
This option replaces the BreakBeforeInheritanceComma option with an
enum, thus introducing a mode where the colon stays on the same line as
constructor declaration:

// When it fits on line:
class A : public B, public C {
  ...
};

// When it does not fit:
class A :
    public B,
    public C {
  ...
};

This matches the behavior of the BreakConstructorInitializers option,
introduced in https://reviews.llvm.org/D32479.

Reviewers: djasper, klimek

Reviewed By: djasper

Subscribers: mzeren-vmw, cfe-commits

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

Details

Committed
TypzJun 11 2018, 7:41 AM
Reviewer
djasper
Differential Revision
D43015: clang-format: Introduce BreakInheritanceList option
Branches
Unknown
Tags
Unknown