[PATCH] D35743: [clang-format] Handle Structured binding declaration in C++17

Daniel Jasper via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 1 23:11:06 PDT 2017


djasper added a comment.

Generally, please upload patches with full context to phabricator. (or use arc)

I think this approach is a bit inside out. We are in a codepath where we try to find a lambda introducer and we the look one or two tokens back to see that we aren't as we have seen "auto". I wonder whether we could instead see "auto" and understand that now we have to parse a declaration. Manuel, any thoughts?


https://reviews.llvm.org/D35743





More information about the cfe-commits mailing list