]> granicus.if.org Git - clang/commit
Implement parsing of blocks (^{ ... }) in the unwrapped line parser.
authorManuel Klimek <klimek@google.com>
Wed, 4 Sep 2013 13:25:30 +0000 (13:25 +0000)
committerManuel Klimek <klimek@google.com>
Wed, 4 Sep 2013 13:25:30 +0000 (13:25 +0000)
commit753a5114f9076c545c33cf3ced0d76e27bc0a2d5
treee38182679939f5e6d373655a6fc3228554439766
parent9e512bc935318be794bad8ff1bcd14222b6006fc
Implement parsing of blocks (^{ ... }) in the unwrapped line parser.

This patch makes sure we produce the right number of unwrapped lines,
a follow-up patch will make the whitespace formatting consistent.

Before:
 void f() {
   int i = {[operation setCompletionBlock : ^{ [self onOperationDone];
 }]
 }
 ;
 }

After:
 void f() {
   int i = {[operation setCompletionBlock : ^{
     [self onOperationDone];
   }] };
 }

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