clang-format: missing BraceWrapping configuration for multiline initialization list
alejandroclaro opened this issue · 2 comments
It's not possible to adjust the position of braces when there is a multiple lines initialization list.
For example, in a code bases with Allman-like braces placement style. This
std::vector<Bar> foo =
{
makeBar(x, y, z),
makeBar(u, v, w)
};
std::vector<int> baz = { 1, 2 };
is always transformed into this:
std::vector<Bar> foo = {
makeBar(x, y, z),
makeBar(u, v, w)
};
std::vector<int> baz = { 1, 2 };
It looks like there is a blocked PR related to this here: https://reviews.llvm.org/D91949
Sorry for this. I mistakenly reported the problem in the wrong repository
It's not possible to adjust the position of braces when there is a multiple lines initialization list.
For example, in a code bases with Allman-like braces placement style. This
std::vector<Bar> foo = { makeBar(x, y, z), makeBar(u, v, w) }; std::vector<int> baz = { 1, 2 };is always transformed into this:
std::vector<Bar> foo = { makeBar(x, y, z), makeBar(u, v, w) }; std::vector<int> baz = { 1, 2 };It looks like there is a blocked PR related to this here: https://reviews.llvm.org/D91949
does some format config can solve this?