aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveDebugVariables.cpp
diff options
context:
space:
mode:
authorManuel Klimek <klimek@google.com>2017-09-19 09:59:30 +0000
committerManuel Klimek <klimek@google.com>2017-09-19 09:59:30 +0000
commit9f0a4e50411faa77962faa6b55ec520802a9e61b (patch)
tree32bfab5c77a907877d9ee247d2137ab8c94464a0 /llvm/lib/CodeGen/LiveDebugVariables.cpp
parent072a43b501aa26f16c86d83367215a863017ca23 (diff)
downloadllvm-9f0a4e50411faa77962faa6b55ec520802a9e61b.zip
llvm-9f0a4e50411faa77962faa6b55ec520802a9e61b.tar.gz
llvm-9f0a4e50411faa77962faa6b55ec520802a9e61b.tar.bz2
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/CodeGen/LiveDebugVariables.cpp')
0 files changed, 0 insertions, 0 deletions