[PATCH] D37132: [clang-format] Add support for C++17 structured bindings.

Marek Kurdej via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 25 01:08:48 PDT 2017


curdeius created this revision.
Herald added a subscriber: klimek.

Before:

  auto[a, b] = f();

After:

  auto [a, b] = f();

or, if SpacesInSquareBrackets is true:

  auto [ a, b ] = f();


https://reviews.llvm.org/D37132

Files:
  lib/Format/FormatToken.h
  lib/Format/TokenAnnotator.cpp
  unittests/Format/FormatTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37132.112663.patch
Type: text/x-patch
Size: 1197398 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170825/b670f0ce/attachment-0001.bin>


More information about the cfe-commits mailing list