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

Yan Wang via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 21 15:47:56 PDT 2017


yawanng created this revision.
yawanng added a project: clang-tools-extra.
Herald added a subscriber: klimek.

Add handling for Structured binding declaration in C++17 in clang-format. For example:
auto [x,y] = a; 
auto &[xr, yr] = a; 
auto &&[xrr, yrr] = a;


https://reviews.llvm.org/D35743

Files:
  lib/Format/TokenAnnotator.cpp
  lib/Format/UnwrappedLineParser.cpp
  test/Format/structured-binding-declaration.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35743.107737.patch
Type: text/x-patch
Size: 3815 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170721/b22a196f/attachment.bin>


More information about the cfe-commits mailing list