summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format/SortJavaScriptImports.cpp
diff options
context:
space:
mode:
authorManuel Klimek <klimek@google.com>2017-09-20 09:29:37 +0000
committerManuel Klimek <klimek@google.com>2017-09-20 09:29:37 +0000
commite411aa85acffbd8da2ea332e6acf86b7f6804192 (patch)
treec3fb11d551dc4c654c67bb3ed179c8a59934e6e7 /clang/lib/Format/SortJavaScriptImports.cpp
parent94444b9a0778d076a73bd430f69ea84aff7185d5 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud