diff options
| author | Manuel Klimek <klimek@google.com> | 2017-09-19 09:59:30 +0000 |
|---|---|---|
| committer | Manuel Klimek <klimek@google.com> | 2017-09-19 09:59:30 +0000 |
| commit | 9f0a4e50411faa77962faa6b55ec520802a9e61b (patch) | |
| tree | 32bfab5c77a907877d9ee247d2137ab8c94464a0 /llvm/lib/Target/Nios2/Nios2FrameLowering.cpp | |
| parent | 072a43b501aa26f16c86d83367215a863017ca23 (diff) | |
| download | bcm5719-llvm-9f0a4e50411faa77962faa6b55ec520802a9e61b.tar.gz bcm5719-llvm-9f0a4e50411faa77962faa6b55ec520802a9e61b.zip | |
Fix formatting of lambda introducers with initializers.
Most of the work was already done when we introduced a look-behind based
lambda introducer detection.
This patch finishes the transition by completely relying on the simple
lambda introducer detection and simply recursing into normal
brace-parsing code to parse until the end of the introducer.
This fixes initializers in lambdas, including nested lambdas.
Before:
auto a = [b = [c = 42]{}]{};
auto b = [c = &i + 23]{};
After:
auto a = [b = [c = 42] {}] {};
auto b = [c = &i + 23] {};
llvm-svn: 313622
Diffstat (limited to 'llvm/lib/Target/Nios2/Nios2FrameLowering.cpp')
0 files changed, 0 insertions, 0 deletions

