This is an archive of the discontinued LLVM Phabricator instance.

Cpp11 Braced List Style Ignores BAS_AlwaysBreak
Needs ReviewPublic

Authored by jgehrig on Dec 7 2018, 9:08 PM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

First patch attempt :)

I've noticed that clang-format does not honor the BAS_AlwaysBreak when Cpp11BracedListStyle is set. This seems like a bug, as BAS_DontAlign will change the line continuation behavior.

This patch makes BAS_AlwaysBreak affect the line continuation behavior in the same way it does with functions or constructors.

Unit Tests should demonstrate the proposed modifications. I also have two related patches which I intend to propose: spaces inside Cpp11BracedList {}s, and parameterization of the 'magic number' which overrides BinPackArguments for Cpp11BracedLists.

Diff Detail

Repository
rC Clang

Event Timeline

jgehrig created this revision.Dec 7 2018, 9:08 PM