clang-format: Always add space before lambda-{
authorDaniel Jasper <djasper@google.com>
Fri, 12 Jun 2015 09:59:16 +0000 (09:59 +0000)
committerDaniel Jasper <djasper@google.com>
Fri, 12 Jun 2015 09:59:16 +0000 (09:59 +0000)
commit60ba32d453464d6e5c7875d0be892a1389931ff8
treedcd97e114f2e08635eddf3e6828c2241b5fd3c6f
parentd9e39d53b6ebe528d0c5728a9dd95e227856bfee
clang-format: Always add space before lambda-{

Before:
  int c = []() -> int *{ return 2; }();

After:
  int c = []() -> int * { return 2; }();

Based on patch by James Dennett (http://reviews.llvm.org/D10410), thank you!

llvm-svn: 239600
clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTest.cpp