diff options
author | Manuel Klimek <klimek@google.com> | 2017-09-20 09:29:37 +0000 |
---|---|---|
committer | Manuel Klimek <klimek@google.com> | 2017-09-20 09:29:37 +0000 |
commit | e411aa85acffbd8da2ea332e6acf86b7f6804192 (patch) | |
tree | c3fb11d551dc4c654c67bb3ed179c8a59934e6e7 /clang/lib/Format/SortJavaScriptImports.cpp | |
parent | 94444b9a0778d076a73bd430f69ea84aff7185d5 (diff) | |
download | bcm5719-llvm-e411aa85acffbd8da2ea332e6acf86b7f6804192.tar.gz bcm5719-llvm-e411aa85acffbd8da2ea332e6acf86b7f6804192.zip |
Fix clang-format's detection of structured bindings.
Correctly determine when [ is part of a structured binding instead of a
lambda.
To be able to reuse the implementation already available, this patch also:
- sets the Previous link of FormatTokens in the UnwrappedLineParser
- moves the isCppStructuredBinding function into FormatToken
Before:
auto const const &&[x, y] { A *i };
After:
auto const const && [x, y]{A * i};
Fixing formatting of the type of the structured binding is still missing.
llvm-svn: 313742
Diffstat (limited to 'clang/lib/Format/SortJavaScriptImports.cpp')
0 files changed, 0 insertions, 0 deletions