[clang-format] Formatting structured bindings

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[clang-format] Formatting structured bindings

Eric Fiselier via cfe-dev
Right now clang-format formats all the following structured bindings:

    auto [a, b];
    auto &[a, b];
    auto& [a, b];
    const auto &[a, b];
    auto const& [a, b];
    auto const &[a, b];

Into the following:

    auto[a, b];
    auto & [a, b];
    auto & [a, b];
    const auto & [a, b];
    auto const & [a, b];
    auto const & [a, b];

Is there anyone working on an option for formatting structured
bindings? If not, how should I go about submitting my PR to a code
review if I were to work on it?
cfe-dev mailing list
[hidden email]