[PATCH] D34238: clang-format: Do not binpack initialization lists
Francois Ferrand via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 15 07:44:44 PDT 2017
Typz added a comment.
In https://reviews.llvm.org/D34238#781224, @malcolm.parsons wrote:
> Some people write
>
> auto x = std::map<int, std::string>{
> { 0, "foo fjakfjaklf kljj" },
> { 1, "bar fjakfjaklf kljj" },
> { 2, "stuff fjakfjaklf kljj" },
> };
This case (and other way `std::map<> x =`) actually already worked, as long it ends with a comma: I suppose the braces at the beginning of each item already caused a line-break.
https://reviews.llvm.org/D34238
More information about the cfe-commits
mailing list