[cfe-dev] [clang-format] Formatting structured bindings

Mário Feroldi via cfe-dev cfe-dev at lists.llvm.org
Thu Dec 21 07:28:20 PST 2017


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?



More information about the cfe-dev mailing list