]> granicus.if.org Git - clang/commit
[clang-format] Adjust space around &/&& of structured bindings
authorChih-Hung Hsieh <chh@google.com>
Wed, 27 Sep 2017 00:58:45 +0000 (00:58 +0000)
committerChih-Hung Hsieh <chh@google.com>
Wed, 27 Sep 2017 00:58:45 +0000 (00:58 +0000)
commite3721258151fc526606cbbe649845e989e7c8443
tree695f2a0fe66d0933a9bcdb3a27d72b7a2be1649c
parent2dab9ecc4a8eba7b83700673007d3ce340e015d7
[clang-format] Adjust space around &/&& of structured bindings

Keep space before or after the &/&& tokens, but not both. For example,
  auto [x,y] = a;
  auto &[xr, yr] = a; // LLVM style
  auto& [xr, yr] = a; // google style

Differential Revision:https://reviews.llvm.org/D35743

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@314264 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/TokenAnnotator.cpp
unittests/Format/FormatTest.cpp