clang-tidy and structured bindings

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

clang-tidy and structured bindings

David Chisnall via cfe-dev
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.
_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|

Re: clang-tidy and structured bindings

David Chisnall via cfe-dev
Sorry for the confusion, it should be about *clang-format*.
_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev