[cfe-dev] clang-tidy and structured bindings

Mário Feroldi via cfe-dev cfe-dev at lists.llvm.org
Mon Nov 13 08:41:53 PST 2017

Right now clang-tidy 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 any code on clang-tidy handling those cases? If not, I'd be
glad to implement it.

More information about the cfe-dev mailing list