]> granicus.if.org Git - clang/commit
clang-format: Fix incorrect lambda recognition.
authorDaniel Jasper <djasper@google.com>
Wed, 22 Jan 2014 17:01:47 +0000 (17:01 +0000)
committerDaniel Jasper <djasper@google.com>
Wed, 22 Jan 2014 17:01:47 +0000 (17:01 +0000)
commit76f9c8295f513bd37bbcf6a90adef4478ccc22b6
tree14d7fa30078171aca10945f369049a4320c3d0fc
parent93574ce14f6efbb1f7e7502f47f1328f446682cd
clang-format: Fix incorrect lambda recognition.

Before:
  std::unique_ptr<int[]> foo() {}

After:
  std::unique_ptr<int []> foo() {}

Also, the formatting could go severely wrong after such a function
before.

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